Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

tar input list of files

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

856 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