[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: creating tar.gz from dired
From: |
Sebastian Luque |
Subject: |
Re: creating tar.gz from dired |
Date: |
Fri, 09 Sep 2005 01:01:21 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Sebastian Luque <spluque@gmail.com> wrote:
> Hi,
> I was trying to tar.gz some files I marked in dired with:
> ! tar -czvf filename.tar.gz RET
> but only the first file makes it into the archive, whereas the same
> command invoked from a shell (tar -czvf filename.tar.gz file1 file2 file3
> ...) does, of course, archive all the files. What might the problem be?
Never mind, some patience and checking the first source of info (the
manual) would have saved my post:
,-----[ (info "(emacs)Shell Commands in Dired") lines: 682 - 693 ]
| * If you use `*' in the shell command, then it runs just once, with
| the list of file names substituted for the `*'. The order of file
| names is the order of appearance in the Dired buffer.
|
| Thus, `! tar cf foo.tar * <RET>' runs `tar' on the entire list of
| file names, putting them into one tar file `foo.tar'.
|
| * If the command string doesn't contain `*', then it runs once _for
| each file_, with the file name added at the end.
|
| For example, `! uudecode <RET>' runs `uudecode' on each file.
`-----
--
Sebastian P. Luque