-
Fototrend
Mára a ProHardver!/IT.News Fórum is nagylétszámú Linuxban jártas taggal büszkélkedhet. Nehéz szinteket felállítani egy olyan rendszer ismeretében, ami annyira sokrétű, hogy teljesen szinte lehetetlen megismerni minden egyes részét. Azt azonban mindenki tudja, hogy kezdő-e vagy sem. Elsősorban nekik szólnak az alábbiak, de érdemes mindenkinek elolvasnia, mint útjelző táblát.
Új hozzászólás Aktív témák
-
Siriusb
veterán
válasz
Dißnäëß #32647 üzenetére
Vagy a find-dal, vagy az fd-vel kellene, én kezdek átszokni ez utóbbira.
Például valami ilyesmi:
fd -e txt -x rm
.
Először mindenképpen a -x rm nélkül teszteld le!-e, --extension ext
Filter search results by file extension ext. This option can be used repeatedly to al‐
low for multiple possible file extensions.-x, --exec command
Execute command for each search result in parallel (use --threads=1 for sequential com‐
mand execution).Note that all subsequent positional arguments are considered to be arguments to the com‐
mand - not to fd. It is therefore recommended to place the -x/--exec option last. Al‐
ternatively, you can supply a ';' argument to end the argument list and continue with
more fd options. Most shells require ';' to be escaped: '\;'. This option can be spec‐
ified multiple times, in which case all commands are run for each file found, in the or‐
der they are provided. In that case, you must supply a ';' argument for all but the last
commands.The following placeholders are substituted before the command is executed:
{} path (of the current search result)
{/} basename
{//} parent directory
{.} path without file extension
{/.} basename without file extensionIf no placeholder is present, an implicit "{}" at the end is assumed.
Szerk.: de lassú voltam, amire mindent bemásoltam.
-
válasz
Dißnäëß #32647 üzenetére
rákeresel a fájlra és törlöd, ha megtalálod
find . -type f -name "*.txt" -exec rm -rf {} \;
aztán lefuttatsz egy második kört és ugyanígy törölteted az üres könyvtárakatfind . -type d -empty -exec rmdir {} \;
mit csinál az rm-nél a d kapcsoló? a man szerint nincs neki olyanja
Új hozzászólás Aktív témák
- Eladó Steam kulcsok kedvező áron!
- Windows, Office licencek kedvező áron, egyenesen a Microsoft-tól - Automata kézbesítés utalással is!
- Eredeti Microsoft termékek - MEGA Akciók! Windows, Office Pro Plus, Project Pro, Visio Pro stb.
- Windows 10 11 Pro Office 19 21 Pro Plus Retail kulcs 1 PC Mac AKCIÓ! Automatikus 0-24
- Windows 10 11 Pro Office 19 21 Pro Plus Retail kulcs 1 PC Mac AKCIÓ! Automatikus 0-24
- Újszeru GIGABYTE G5 - 15.6" FullHD 144Hz - i7-13620H - 48GB - 1TB - RTX 4050 - Win11 - 1,5 év gari
- AKCIÓ! Gigabyte B760M i5 14600KF 32GB DDR4 512GB SSD RX 6800XT 16GB Rampage SHIVA CM 750W
- ÁRGARANCIA! Épített KomPhone Ryzen 7 9700X 32/64GB RTX 5070 12GB GAMER PC termékbeszámítással
- BESZÁMÍTÁS! MSI B450M R5 5500 16GB DDR4 512GB SSD RX 5700XT 8GB Rampage SHIVA Chieftec 600W
- Telefon felvásárlás!! iPhone 11/iPhone 11 Pro/iPhone 11 Pro Max
Állásajánlatok
Cég: CAMERA-PRO Hungary Kft
Város: Budapest
Cég: PC Trade Systems Kft.
Város: Szeged