10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi,
I want to write script for the last 5 files to compress.
#!/bin/sh
a= ls -ltr | awk '{print $9}' | head -5 | tail -3
echo `compress $a`
exit 0
but this was telling "not found"
please modify the script if i am wrong. (5 Replies)
Discussion started by: victory
5 Replies
3. Shell Programming and Scripting
I'd like to create simple bash script that, given a directory, compresses each directory by name, e.g.:
Contents of ~/Documents
Folder1
Folder2
Folder3
compress-subdirectoies.sh ~/Documents
Results:
Folder1.
Folder2.
Folder2.
Any advice would be appreciated (7 Replies)
Discussion started by: furashgf
7 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
Script File Is Not Getting Saved This Are The Steps I Am Following For Saving And Executing A Script
1). vi ( To Open Vi Editor )
2). vi filename ( vi firstprog.ksh)
#!bin\kash
date
3) !wq :( Saving And Quit) When I Am Saving The Scrpit I Am Getting The Below... (1 Reply)
Discussion started by: anudeepkumar123
1 Replies
5. Shell Programming and Scripting
I am looking for a script where I need to open a file and modify the data like changing the parameters.Can anyone help me?
open a file software.rsp . It already contains following data.
parameter = false
threads=100
user= demf
The above should be changed to
paramter=true
thread= 133... (3 Replies)
Discussion started by: sriki32
3 Replies
6. Shell Programming and Scripting
Hi all
I need to write a script that archives all files with a certain date in the filename, to another location.
It has to run on a AIX using tar/compress or another standard AIX tool.
The directory will have x files, each prefixed with a date like yyyymmdd_desc.csv.
I need all to... (7 Replies)
Discussion started by: AIXfrog
7 Replies
7. UNIX for Dummies Questions & Answers
Hi All !
We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows.
I have used the utility ZIP like the below.
zip -e <newfilename> df2_test_extract.dat
but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies
8. Shell Programming and Scripting
i have the script how to write script in compress format in tar (1 Reply)
Discussion started by: naveeng.81
1 Replies
9. Shell Programming and Scripting
i hav 200 logs files in a folder i want compress only the files having size more than 10 mb . please provide a script (1 Reply)
Discussion started by: kingkhankk
1 Replies
10. UNIX for Dummies Questions & Answers
Hi,
How wud I script a particular log file to be compressed at a particular time and to be uncompressed after say 2 hours ?
Im on a aix 3.2 box .
file to be compressed --- > # pwd
# /zssps/sps06/slogfile
Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies