Skip to contentSkip to conversation

Tartar

DISCUSSION Peter 2 participants 2 messages Apr 14, 2003

lore
Share & tools
lore

Peter

author
#0 lore raw

Hi,

when you first mentioned tartar it was: tar -C $1 -cOl . | tar -C $2 -xpf ,

This time you put quotations: tar -C "$1" -cOl . | tar -C "$2" -xpf .

Which is correct.

Regards

Signature · 7 lines
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#1 lore raw
Quoted 10 lines · Peter

Hi,

when you first mentioned tartar it was: tar -C $1 -cOl . | tar -C $2 -xpf ,

This time you put quotations: tar -C "$1" -cOl . | tar -C "$2" -xpf .

Which is correct.

Regards

Well, IIRC the first version won't work if the directory name contains spaces. That's why I changed it. Guess I'll have to start versioning it.

#!/bin/sh
## copy a directory or partition
## tartar version 0.0.3 Lawson Whitrney <[email protected]>
## 13 April 2003 Use, distribute or change at your own risk.
tar -C "$1" -cOl . | tar -C "$2" -xpf -

Lawson
--
---oops---

________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs