10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey,
I have number of .tgz files and want to extract the file with the ending *results.txt from each one.
I have tried
for file in *.tgz; do tar --wildcards -zxf $file *results.txt; doneas well as
list=$(ls *.tgz)
for i in $list; do tar --wildcards -zxvf $i *.results.txt; done... (1 Reply)
Discussion started by: jfern
1 Replies
2. Shell Programming and Scripting
Hi all,
I want to check whether tar file exists in the directory or not. If tar file exists in the directory then I want to append the files to it.
I am using the below command to tar files if the file does not exist.
tar zcvf <tar file name> <Files to append>
However, if want to... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies
3. AIX
Hi guys,
This is my 1st post here. I tried to Google around but failed to get my solution. So I hope you guys could help me. (I have just a basic unix background for 2years so I'm sorry if im asking stupid questions)
OS - Aix 6.1, 64 bits.
Server - currently I only have telnet access to a... (12 Replies)
Discussion started by: pilotHans
12 Replies
4. Shell Programming and Scripting
Hi,
I have two text files. Need to create a third text file extracting specific data from first two existing files..
Text File 1: Format contains:
SQL*Loader: Release 10.2.0.1.0 - Production on Wed Aug 4 21:06:34 2010
some text ............so on...and somwhere text like:
Record 1:... (1 Reply)
Discussion started by: shashi143ibm
1 Replies
5. UNIX for Dummies Questions & Answers
Hello,
What is the command to add files to an existing tar file.
Thanks, (5 Replies)
Discussion started by: Nomaad
5 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
Need help. Anybody seen this kind of file before?
file.tgz.1of2
file.tgz.2of2
how to extract this tgz file? Any help?
Tq (5 Replies)
Discussion started by: zeedwolf
5 Replies
7. UNIX for Dummies Questions & Answers
Let's say I've got File.tgz that contains:-
Apple.txt
Banana.txt
Carrot.txt
AppleBanana.txt
Now, I would like to only extract files that contain the patter "Apple".
I've tried this
tar -xvf File.tgz 'tar -tf File.tgz | grep 'Apple''
but it does not work. Please help. Thanks. (12 Replies)
Discussion started by: percivalwcy
12 Replies
8. UNIX for Dummies Questions & Answers
Hello
I have a ton of files in a directory of the format app.log.2008-04-04
I'd like to run a command that would archive each of these files as app.log.2008-04-04.tgz
I tried a few combinations of find with xargs etc but no luck.
Thanks
Amit (4 Replies)
Discussion started by: amitg
4 Replies
9. Windows & DOS: Issues & Discussions
Could anyone of y'all gurus tell me of how to open *.tgz files in WinXP....which program should i use to open it...i have tried going online to open it ut all in vain...please help
Gerry... (5 Replies)
Discussion started by: gerald_agoi
5 Replies
10. UNIX for Dummies Questions & Answers
hi all
How to unzip .tgz files
waiting for suggestions
Praful (5 Replies)
Discussion started by: Prafulla
5 Replies