10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I wish to delete all files that starts with "body<any number of digits>.xml" except body65.xml on Linux 7 bash shell
So, from the below files
body64.xml
body.sh
body65.xml
body655.xml
body565.xml
body66.xml
hello65.xml
My command should delete all files except the below.
body.sh... (2 Replies)
Discussion started by: mohtashims
2 Replies
2. Shell Programming and Scripting
Hello Guys,
Can you please help me with a script which zips the older log files(1-2 weeks) and delete them?
I want to run the script manually instead of setting it up in a cron job.
Appreciate your help.
Regards,
Kris (6 Replies)
Discussion started by: kriss.gv
6 Replies
3. Shell Programming and Scripting
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
4. 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
5. Shell Programming and Scripting
Hello,
can someone help me to create a short script that tar.gz all folders form a specific folder and the delete the folders themself (without deleting the tar.gz created files)?
Moreover I'd like to add it on crontab and run it each day.
For example: in /tmp I have:
/tmp/test/test1... (7 Replies)
Discussion started by: mab80
7 Replies
6. Shell Programming and Scripting
I want to use my script to get any file then delete it once it transfers to my side , I manage to create below script to generate "list" file which contains all file names in "10.10.1.1" then I made "a.out" file which contains the commands that I want to run it on "10.10.1.1" to get & delete the... (2 Replies)
Discussion started by: arm
2 Replies
7. Red Hat
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
Discussion started by: zachs
7 Replies
8. Web Development
Hi all,
Someone please help with a script that will compress a directory for backed up:
home/main/directory2Bcompressed/
home/main/directory2Bcompressed_date.zip
Then all the files in the directory are to be deleted right afterwards, emptied out for new files to come in:
... (6 Replies)
Discussion started by: MrDude
6 Replies
9. Shell Programming and Scripting
Hi,
I am trying to write a shell script to delete logs generate by db when space in the folder reaches 70%. i am getting space values from db, find the files at OS and remove them by using a cron job runs every 5minutes.
I have to keep the latest 5 files at any time, my problem is that log files... (3 Replies)
Discussion started by: saha
3 Replies
10. SCO
Our End of Day backup routine uses following script.
start End-of-day
compress $BASE TO /home/compdir
write /home/compdir to DATTAPE
end
where
$BASE=/home2/Rev83
DATATAPE=/dev/rmt/ctape1
write=cpio (not sure about parameters)
since I'm new to UNIX, i dont know how to restore data... (1 Reply)
Discussion started by: tayyabq8
1 Replies