The tag has no usage guidance.

learn more… | top users | synonyms

4
votes
2answers
216 views

Delete lines with value below (or above) threshold

My file looks like this: AA 110 B 10 .. BB 15 ... BBB 20 D F 25 D D AA 111 B 50 .. BB 55 ... BBB 30 F F 45 F F AA 112 C 2 .. BB 3 ... BBB 0 D F ...
0
votes
3answers
29 views

Delete files of particular extension except one in Linux

I have files: a.txt b.txt e.txt c.c d.o I want to delete ONLY .txt files excluding e.txt, so the files which will remain at the end are: e.txt c.c d.o
0
votes
1answer
34 views

How to clean unnecessary files from Linux [on hold]

Each time I stop a zip process with Cntl+z a large temporary file is left on my server with a name like zi0RAB10 or zilsOZMP. There may be files similar to this throughout the server - the remains of ...
0
votes
1answer
45 views

Why does find not delete the files it found?

I'm trying to understand why the find command is not deleting files in one particular case. I've got the following command: find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -...
2
votes
1answer
93 views

How do I delete a directory with hyphen in the name please? [duplicate]

Could someone help me delete a directory named -ltr I accidentally created this when trying to list items. None of this works: rm -R *-ltr* rm -R "-ltr" rm -R '-ltr'
1
vote
1answer
75 views

How to delete all except for some specific folder under parent-folder

So here's content under my /html folder. [root@ip-10-0-7-121 html]# ls a wp-activate.php wp-content wp-mail.php b wp-admin wp-cron.php wp-...