10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello all. Is there a command to copy the contents of one file into another file as the first line? (1 Reply)
Discussion started by: 2metal4u
1 Replies
2. UNIX for Dummies Questions & Answers
the problem states "Write a script that compresses all the files in the directory. Make a directory and put some files in it. Also make a sub directory in your directory and put files in it also. Once you have this basic ability to compress all files within a directory, add to your script a menu of... (1 Reply)
Discussion started by: Brittany
1 Replies
3. Shell Programming and Scripting
Hi all
I have the following script that should compress a file in a directory:
# compress log files older than 2 days
find /u01/easydone/DBDUMPS/*.dmp -mtime +2 -exec gzip {} \;
BUT the problem is that these files that I want to compress are inside a directory with following format:
... (5 Replies)
Discussion started by: fretagi
5 Replies
4. Shell Programming and Scripting
Following is the code:
------------------------------
a=100
b=200
c=300
touch testfl.txt.gz
chmod 664 testfl.txt.gz
echo $a|gzip >> "testfl.txt.gz"
echo $b|gzip >> "testfl.txt.gz"
echo $c|gzip >> "testfl.txt.gz"
------------------------------
There is a requirement as follows.
I need... (1 Reply)
Discussion started by: kmanivan82
1 Replies
5. UNIX for Dummies Questions & Answers
Hi guys, I am a newbie here :wall:
I need a script that can search for a file in a directory and copy the contents of that file in a new file.
Please help me. :confused: Thanks in advance~ (6 Replies)
Discussion started by: zel2zel
6 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. Shell Programming and Scripting
Hi,
I am a newbie in shell scripting. I have to copy a particular sub-directory (data) from a large no. of directories (all in the same folder) and paste them to another directory ( /home/hubble/data ) and then rename all the subdirectories (data) as the name of its parent directory.
please... (8 Replies)
Discussion started by: sholay
8 Replies
8. Shell Programming and Scripting
Hi Friends,
I have a directory under which 10 more directories are there.
In each 10 directories there are several files.
I want to do FTP. But in FTP we cannt Transfer the main directory.
each Time we have to go to the respective directry and then we have to to FTP.
For this instance I... (9 Replies)
Discussion started by: deep_kol
9 Replies
9. Shell Programming and Scripting
I need a shell script that zips a file before moving them..please help (3 Replies)
Discussion started by: godalle
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Is there any utility to compress an entire directory on a Sun Solaris 5.7 ? Something like "compressdir" on other flavours of Unix ?
Thanks (4 Replies)
Discussion started by: sameerdes
4 Replies