10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
i have a requirement to delete all the files from all the directories except some specific directories like archive and log.
for example:
there are following directories such as
A B C D Archive E Log F
which contains some sub directories and files. The requirement is to delete all the... (7 Replies)
Discussion started by: Little
7 Replies
2. Shell Programming and Scripting
Here is expected output:-
For each file with following file name pattern we need to look at position 1 inside first file matching our search criteria if first letter of the line is 5 then position 88-94 will be 0000001 then look for line immediately after 5 which starts with i.e. position 1 = 8... (6 Replies)
Discussion started by: lancesunny
6 Replies
3. Shell Programming and Scripting
Hi guys,
I'm new to the forums and putting my foot in the door with SED and AWK. I was wondering if someone could help me as I think I'm making this harder than it needs to be...
I have a list of folders named as urls, inside these are log files and possibly a 'status' file. I'm trying to get... (6 Replies)
Discussion started by: KakersUK
6 Replies
4. Shell Programming and Scripting
Hi ,
I have a file which contains few file names. I need to tar those files but am unable to do inside the script. Any help will be useful.
cat /tmp/test
aa.txt
bb.txt
cc.txt
I have tried the below code but its not working.
for i in `cat /tmp/test';do tar -cvf TEST.tar $i;done (9 Replies)
Discussion started by: rogerben
9 Replies
5. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
6. Shell Programming and Scripting
i Have 150 tar.gz files and i need to uncompress and extract all the files from those 150 tar.gz and i will have 150 files on daily basis.
could any one help me out with the script to uncompress tar.gz files. (5 Replies)
Discussion started by: gaddamshashank
5 Replies
7. Solaris
I've downloaded the tomcat from http://archive.apache.org/dist/jakarta/tomcat-5/v5.0.30/bin/
at window 2000 and then ftp to Solaris 5.9 in binary mode.
gunzip -c jakarta-tomcat-5.0.30.tar.gz | tar -xvf -
tar: directory checksum error
if try this one,
gzip -d jakarta-tomcat-5.0.30.tar.gz... (2 Replies)
Discussion started by: sbox
2 Replies
8. UNIX Desktop Questions & Answers
i want know how to compress and uncompress file using unix,
compress uncompress,zip,unzip,rar,unrar,how its work and more about this.:confused: (1 Reply)
Discussion started by: ismael xavier
1 Replies
9. Shell Programming and Scripting
Hello,
how can I send a compressed file (file.tar.Z) on another server ans uncompresse and extract it there ? My code which is like this
uncompress *tar.Z | rsh serveurB -l user1 "cd /d15/store/; tar xf -"
does not function.
Many thanks before. (4 Replies)
Discussion started by: big123456
4 Replies
10. UNIX for Dummies Questions & Answers
I get a compressed file for linux and I want to uncompress it in Unix. Is that possible?
I try with te command uncompress but it didnīt work.
T.hanks (3 Replies)
Discussion started by: diegoe
3 Replies