10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need some help in the below scenario.
I need to delete all the files from the directory except the file name available in the Except file.
Like the folder ABC have files like A1.txt,A2.txt......A10.txt
and also have a file named Except.txt with the content A3.txt,A4.txt
Need a... (6 Replies)
Discussion started by: kban
2. UNIX for Dummies Questions & Answers
Hi, I have very old files in my server like from 2012 and i want to delete them,
Thanks in advance.. (2 Replies)
Discussion started by: nanz143
3. Shell Programming and Scripting
I want to delete the image files from a directory, which are not listed in a TEXT file.
The directory contains large number of image files (in millions) required / not required. I want to delete the image files which are "not required".
I have generated a Text file having... (3 Replies)
Discussion started by: Praveen Pandit
4. Shell Programming and Scripting
Here's the scenario,
I have a text file called "file_list.txt". Its content is as follows.
These files will present in "workdir" directory. It has many files. But only the files present in file_list.txt has to be deleted from the workdir... (7 Replies)
Discussion started by: kmanivan82
5. Shell Programming and Scripting
Data files coming in different names in a file name called process.txt.
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
Discussion started by: dsravanam
6. Shell Programming and Scripting
I am trying to write a script that will copy all file listed in a text file (100s of file names) to a new directory
Assume script will run with main as current working directory and I know how many files/lines will be in List.txt
Im trying to work up a test script using this model
Contents of... (2 Replies)
Discussion started by: IAmTheGrass
7. Shell Programming and Scripting
I have a directory which contains files that can be versioned. All the files are named according to a pattern like this:
If a file is versioned, a file called
... (10 Replies)
Discussion started by: fox1212
8. UNIX for Dummies Questions & Answers
i have a txt file of image names that have to be deleted in pwd how can i use the txt file to delete the files in pwd and is it possible?--i might be able to import the txt files into a spreadsheet ahd same it as a csv file. i want it to be done recursive lly --what i mean is teh sysem goes thru... (4 Replies)
Discussion started by: plener
9. Shell Programming and Scripting
I have a folder with some 120 files...i just want to print all the file filenames(not the content or anything else) onto a file say .txt.
please help me with this command
Thanks a lot. (15 Replies)
Discussion started by: kumarsaravana_s
10. UNIX for Dummies Questions & Answers
Recentily i receive virus ninda and my network was files *.eml.
I find all *.eml with:
find / -name *.eml -print > virus
Virus has the path and name of the file,so, How can i delete all *.eml?
Thanks (2 Replies)
Discussion started by: AlvaroD