unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* creating tar.gz from dired
@ 2005-09-09  5:41 Sebastian Luque
  2005-09-09  6:01 ` Sebastian Luque
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Luque @ 2005-09-09  5:41 UTC (permalink / raw)


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?

Thanks in advance,

-- 
Sebastian P. Luque

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: creating tar.gz from dired
  2005-09-09  5:41 creating tar.gz from dired Sebastian Luque
@ 2005-09-09  6:01 ` Sebastian Luque
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Luque @ 2005-09-09  6:01 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-09  6:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-09  5:41 creating tar.gz from dired Sebastian Luque
2005-09-09  6:01 ` Sebastian Luque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).