10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
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
total 0
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
2 Replies
2. Linux
Hi,
I'd like to delete emails on one of my Linux boxes using a criteria and I don't really know where to start. Any suggestions?
The emails I'd like to delete have all the following sub-string: checkdefunct.sh.sh
I have more than 187.000 emails and 90% of them I'd like to get rid of.
... (1 Reply)
Discussion started by: fabiogilr
1 Replies
3. Shell Programming and Scripting
Hello All,
Can someone please help me out in creating the find command to search and delete files older than 1 days at a desired location.
Thanks in advance for your help. (3 Replies)
Discussion started by: Pandee
3 Replies
4. Shell Programming and Scripting
A file(example viv.txt) contains a n number of rows like
1,2,3,4,5,6,7,8
11,22,33,44,55,66,77,88
1,3,9,7,8,5,2,6,4
Requirement:
If number "5" exist in the sixth position then it should delete the whole line.like this it should check for all rows in a file(viv.txt)
.
please help on this. (5 Replies)
Discussion started by: katakamvivek
5 Replies
5. SuSE
Hello Linux Masters,
I am not a linux expert therefore i need help from linux gurus.
Well i have a requirement where i need to search all files based on first patterns and after seraching all files then serach second pattern in all files which i have extracted based on first pattern.... (1 Reply)
Discussion started by: Black-Linux
1 Replies
6. Shell Programming and Scripting
Gurus
I have a CSV containing 60K records.Each row has 8 columns.
On some rows ,for the 7th column ,i find word 'UnknownState(898914497)' repeated many times.
e.g
<N_HOST> <tcp> <*> <*> <*> <*> ... (1 Reply)
Discussion started by: ak835
1 Replies
7. Shell Programming and Scripting
Hi,
I am trying to write a script that will use ls on a directory and list the files one at a time and their size. If the size is 0 i want it to ask me if I want to delete it (yes or no). If I say yes, I want it to delete but it won't know what the file name is just from running from the script.... (2 Replies)
Discussion started by: akeenabawa
2 Replies
8. UNIX for Advanced & Expert Users
Hi,
I would appriciate if somebody can help me figure out how to search for all the *.xml file under a specific directory and subdirectroies (/home/username) and later search of content "<start>" inside the xml file returned by search.
-Lovin.V (2 Replies)
Discussion started by: lovi_v
2 Replies
9. Shell Programming and Scripting
After searching for a specified string, I would like to delete couple of rows from the file and continue searching. Basically, I would like to search through a text file that holds logs with date-time stamp in them and then clean up the file if the log entry is more than 2 days old.
Example log... (0 Replies)
Discussion started by: new2shell
0 Replies
10. Shell Programming and Scripting
Folks,
I have a set of list that contains file names. I want to search through each of the list and delete any file that is found in the list.
eg.
LIST_A contains:
aaa
bbb
ccc
ddd
eeee
LIST_B contains:
aab
aac
adb
aed
assuming I want to... (6 Replies)
Discussion started by: odogbolu98
6 Replies