Solved

tar input list of files

Posted on 2013-06-10
2
1,313 Views
Last Modified: 2013-06-10
I have a list of files that need to be tarred
I think the syntax is with the - I but don't remember exactly how it goes


tar -cvf -I (file with list of files to tar) tarname.tar

something like that but can't get it to work
0
Comment
Question by:bkreynolds48
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 39235905
Which is your OS?

With AIX tar it's "-L"

tar -cvf tarname.tar -L file-list

With Solaris tar it's "-I"

tar cvf tarname.tar -I file-list

Please note: No leading dash "-" before "cvf" on Solaris!

HPUX tar doesn't have such an option.
0
 
LVL 1

Author Closing Comment

by:bkreynolds48
ID: 39236044
Yeah - thank you - I used to be on Solaris now on AIX - did not know that tar was different on these two
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now