Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-29-2002, 12:27 PM   #1
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Rep: Reputation: 30
tar and CSV

I want to create a database of the contents of my tarfiles. I read that I can list the contents of an archive by typing:

tar -t thisarchive.tar (or use --list instead of -t)

But, when I ran the above, my terminal just sat there silently.

I want to generate a CSV file with:

and then import the resulting CSV into a MySQL table that I have created.

I thought using tar -t would be a good starting place to build this kind of thing. But, even if I can figure out the -t or --list options, I have never written a shell script and don't know regular expressions, so I'm unable to implement my idea.

If anybody could give me a brief description of the basic components I will need to learn and use, then point me to more detailed (though learner-friendly!) coverage of same, I would be grateful.

Old 10-29-2002, 01:23 PM   #2
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
Tar looks at /dev/tape by default. You must use the -f switch to look at a different file.

tar -cyvf myfile.tar.bz2 /path/to/what/to/archive/
tar -xyvf myfile.tar.bz2 -C /where/to/put/the/files
tar -tyvf myfile.tar.bz2

For backup logging, I just use FlexBackup. Google should find it for you. Works with tapes, files, whatever. Does multi-level backups, multiple backups on one tape, etc.

I like it a lot. Too bad it's no longer maintained. :-(

Last edited by akohlsmith; 10-29-2002 at 01:24 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
default application for .csv ahz10 Linux - Software 2 11-04-2005 04:24 PM
help editing .csv files schneidz Programming 7 06-11-2005 05:09 PM
Mysql CSV problems farmerjoe Linux - General 2 11-13-2004 12:21 PM
CSV File AMMullan Programming 2 11-10-2003 01:49 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration