Solved

tar input list of files

Posted on 2013-06-10
2
1,610 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Vmware Vswitch  VS  Redhat  Bridge 1 120
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 109
Write an app 10 73
Writing a UNIX script menu allowing for multiple options. 5 91
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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 how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

740 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