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 .

  • Well, read the manus and write something like find . \( -name "*~" -o -name "#*" \) -print find . \( -name "*~" -o -name "#*" \) -print , but if you also need to delete these files (the script is called clean), then find . \( -name "*~" -o -name "#*" \) -delete something like that find . \( -name "*~" -o -name "#*" \) -delete find . \( -name "*~" -o -name "#*" \) -delete . It will work both under poppy and under Linux. In the line there is no ";" '&&' and, moreover, "ETC." - KoVadim
  • You entitled the question with the word “problem”, but did not specify in the text of the question exactly what the problem is. You can correct the question text by clicking edit below the question text. - aleksandr barakin

0