[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

tar input list of files

Posted on 2013-06-10
2
Medium Priority
?
2,270 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 1000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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 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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month19 days, 2 hours left to enroll

834 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