Hi, I am new in UNIX/Solaris, I have 10 files say file1.txt ... file10.txt
how can I make tar file for all these files. TIA. leza
try tar xvf myfile.tar *.txt in the directory where these files live
(not necessarily required - but it makes it easier when you untar them)
"Any sufficiently advanced technology
is indistinguishable from magic."
Arthur C. Clark
Mike has egg on his face and is red with embarra*t
That should be tar cvf myfile.tar *.txt - sorry about that
> > Hi, I am new in UNIX/Solaris, I have 10 files say file1.txt ... file10.txt
> > how can I make tar file for all these files. TIA. leza
> --
> MICHAEL J. MINAMOTO
> Please remove *NOSPAM* in your reply.
> "Any sufficiently advanced technology
> is indistinguishable from magic."
> Arthur C. Clark
"Any sufficiently advanced technology
is indistinguishable from magic."
Arthur C. Clark
Perhaps you mean to says:
tar cvf myfile.tar *.txt
> > Hi, I am new in UNIX/Solaris, I have 10 files say file1.txt ... file10.txt
> > how can I make tar file for all these files. TIA. leza
> --
> MICHAEL J. MINAMOTO
> Please remove *NOSPAM* in your reply.
> "Any sufficiently advanced technology
> is indistinguishable from magic."
> Arthur C. Clark
UNIX> tar cvf /tmp/test.tar `ls file[0-9].txt file[0-9][0-9].txt`Quote:>Hi, I am new in UNIX/Solaris, I have 10 files say file1.txt ... file10.txt
>how can I make tar file for all these files. TIA. leza
This will create a "tar" file in "/tmp" containing >>all<< files in
the current directory that start with "file", contain one or two
numeric digits, and end with ".txt".
P.S. I'm sure some UNIX guru out there has a better method of
extracting those files names and passing them to tar :)
--
Erik W. Anderson, GIS Analyst WWW: http://www.wa.gov/kitsap/
614 Division St., MS-36 Voice: (360) 895-3743
Port Orchard, WA 98366-4682 FAX: (360) 895-4925
The opinions expressed herein are my own and not that of Kitsap
County.
(to reply to this message, remove the dash from my username. I
apologize in advance for the inconvenience.)
1. Scripting Help: tar a dir with time and date as file tar file name..................TIA
Scripting Help: tar a dir with time and date as tar file name..................TIA
Hi,
I am trying to create a script that will tar a directory with the tar file name being the time and date of the execution of the script.... like:
041520001624.tar
Any help would be much appreciated!!
3. backup multiple tar-files on a tape using tar and mt - command
4. Linux won′t recognize my HD !
5. backup multiple tar-files on a tape using tar & mt ???
6. AVA - 1515 adaptec controller
7. tar file size limit and tar to tape
8. HELP! can't mount DOS or CDROM
9. tar: 0511-180 can't tar files with prwxrwxrwx attributes???
10. getting a tar file off a tape when you've tar cf'ed first
11. using tar command to extract tarred files
12. rsh, rcp, GNU tar cvf user@host:./tarfile.tar file FAIL
13. tar: warning: tar file made with signed checksum