Create a clean file and insert a command into it in one line that searches for a given directory and subdirectory files that end in "~", or start with "#"
only one line is allowed to write: and without the ";" '&&' etc
Hint "man find"
Closed due to the fact that the essence of the question is incomprehensible to the participants by cheops , user194374, Kromster , aleksandr barakin , sercxjo Jul 5 '16 at 10:30 .
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
|
find . \( -name "*~" -o -name "#*" \) -printfind . \( -name "*~" -o -name "#*" \) -print, but if you also need to delete these files (the script is called clean), thenfind . \( -name "*~" -o -name "#*" \) -deletesomething like thatfind . \( -name "*~" -o -name "#*" \) -deletefind . \( -name "*~" -o -name "#*" \) -delete. It will work both under poppy and under Linux. In the line there is no ";" '&&' and, moreover, "ETC." - KoVadim