Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I am trying to tar certain files in a directory, but I keep getting a tar invalid --a option? What I am using is this, tar -cvjf filename.tar.bz2 find ...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    27

    Help With Tar and Find Command

    Hello,

    I am trying to tar certain files in a directory, but I keep getting a tar invalid --a option? What I am using is this,

    tar -cvjf filename.tar.bz2 find -name '*.sql' -o -name '*.bz2'

    Thanks JR

  2. #2
    Linux User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    353
    Not that good at command line, but look at Mommy, I found it! — 15 Practical Linux Find Command Examples for find examples.

  3. #3
    Linux User Felarin's Avatar
    Join Date
    Mar 2007
    Location
    Brazil or Singapore
    Posts
    314
    Quote Originally Posted by gaspower View Post
    Hello,

    I am trying to tar certain files in a directory, but I keep getting a tar invalid --a option? What I am using is this,

    tar -cvjf filename.tar.bz2 find -name '*.sql' -o -name '*.bz2'

    Thanks JR
    Try

    tar -tjf filename.tar.gz2 | grep *.sql
    "A graphical user interface is just a mask. What lies beneath is what matters."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...