10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
we need to have periodic clean up implemented in our sap directory \\sapds\PR1\int\scm\snp\outbound\snapshot. which needs unix script for Deleting files older than 14 days automatically in sap system unix os. (1 Reply)
Discussion started by: kvkreddy_b2w
1 Replies
2. Shell Programming and Scripting
hi
i have a set of similar files. i want to delete lines until certain pattern appears in those files. for a single file the following command can be used but i want to do it for all the files at a time since the number is in thousands.
awk '/PATTERN/{i++}i' file (6 Replies)
Discussion started by: anurupa777
6 Replies
3. Shell Programming and Scripting
there are 20 variables and I would like to delete the rows if 13th-20th columns are all NA.
Thank you!
FID IID aspirpre statihos fibrahos ocholhos arbhos betabhos alphbhos cacbhos diurehos numbcig.x toast1 toast2 toast3 toast4 ischoth1 ischoth2 ischoth3 ischoth4
101 101 1 1 1 1 1 2 1 2... (2 Replies)
Discussion started by: johnkim0806
2 Replies
4. UNIX for Advanced & Expert Users
Iam putting file in ftp server.
iam doing ftp
to transfer a file to ftp server
but after sometime(10 sec) the file is automatically deleting in the ftp.
Can i know why this happens.
When my friend ftp the file to the same server , the file is not deleting aftersometime... it is there.
Can... (1 Reply)
Discussion started by: nani1984
1 Replies
5. AIX
Hi
In my aix server under the location "/usr/sap/SAPXI/extract", I have a lot of log files.
I need a script which is to be added in crontab so that the files and directories older than 14 days should get deleted automatically from the location "/usr/sap/SAPXI/extract".
Please advise me.... (3 Replies)
Discussion started by: samsungsamsung
3 Replies
6. HP-UX
Hi,
I want to delete files of a particular month in a particular directory. Please tell me a script for this so that it will search a particular kind of file in that directory and delete them.I am using HP-UX. (1 Reply)
Discussion started by: adityam
1 Replies
7. UNIX for Dummies Questions & Answers
Hi Gurus,
I am new to unix.
I have a requirement where i need to delete some files in a folder twice a week.
Suppose i have a folder AAA. In that i have files from 01/04/2008 to 10/04/2008
I want to remove all the files except last 3 days i.e., 10,9th & 8th.
Every week twice we want to... (2 Replies)
Discussion started by: pssandeep
2 Replies
8. Shell Programming and Scripting
Hello,
Can anyone pls. provide me with the command for deleting files older then 15 days with a restriction to keep at least 5 files in a directory even if they are older then 15 days.
Any help will be highly appreciated.
Thanks,
Pulkit (4 Replies)
Discussion started by: pulkit
4 Replies
9. UNIX for Advanced & Expert Users
Hi, I would modify to delete the files after creating the tar archive.
How I can modify the following command:
tar -cvvf logswitch.tar `find *.log* -mtime +5`
It create a tar with files that are older than 5 days. (5 Replies)
Discussion started by: Minguccio75
5 Replies
10. Shell Programming and Scripting
Hello...
Any body, how to delete the files where last modified for 1 month, would you give some example.
Sorry, im very newbie in scripting.
Thanks. (4 Replies)
Discussion started by: blesets
4 Replies