10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a requirement to delete all the files from all the directories except some specific directories like archive and log.
there are following directories such as
A B C D Archive E Log F
which contains some sub directories and files. The requirement is to delete all the... (7 Replies)
Discussion started by: Little
2. Shell Programming and Scripting
can anyone tell me what is the commands to delete the below particular word in the all files located in one particular file path
files/ll>grep "/ftp/" test.kell
ftp -m uskmc -d /ftp/ -i filename.zip
output should be :
ftp -m uskmc -d -i filename.zip (4 Replies)
Discussion started by: ramkumar15
3. Shell Programming and Scripting
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
4. Shell Programming and Scripting
I'm sure this has been asked many times, but a search didn't turn up a definitive best method for this (if there ever is such a thing).
I have been using rsync to back up my main data directory, but I have accumulated a large number of older backups that I don't need. All of the files I don't... (14 Replies)
Discussion started by: LMHmedchem
5. UNIX for Dummies Questions & Answers
grep -c 'avihai' 1.log
will give me count of 'avihai' in log
I want to have a list of files in the folder that show file name with count side by side.
Please advice (2 Replies)
Discussion started by: avihaimar
6. Shell Programming and Scripting
I am looking for a simple way for replacing all the files under a directory that use the server "xsgd1234dap" with "xsdr3423pap".
In the Directory,
$ grep -l "xsgd1234dap" *.sh | wc -l
I have "119" files that are still using... (5 Replies)
Discussion started by: filter
7. Shell Programming and Scripting
I have several files in a specific directory.
A specific string in one file can occur in another files.
If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string.
ShortName "Blue... (2 Replies)
Discussion started by: premier_de
8. UNIX for Dummies Questions & Answers
I have these files in my directory.
I want to delete only files in first... (2 Replies)
Discussion started by: i.scientist
9. UNIX for Dummies Questions & Answers
Lets say I have 3 files a.txt and b.txt and c.txt.
a.txt has the following text
apple is good for health
b.txt has the following text
apple is pomme in french
c.txt has the following text
orange has citric acid... (1 Reply)
Discussion started by: amjath78
10. Shell Programming and Scripting
i have a directory "ABC" with lots of old files and sub directories in it.
the issue now is i want to delete away files which are older than 15 days in "ABC" without deleting the files in the sub directories and without deleting the sub directory.
i tried using find command but it will drill down... (2 Replies)
Discussion started by: legato