I want to write files (filtered by date) from one directory to another. On my UNIX box, I can do this by writing to and reading from standard output:
tar xvf - --I includes . | (cd newdir ; tar xf - )
(My old tar, not gnu version, uses the include
command, vs. --after-date=xxx).
In GnuWin32 tar on a PC running XP, I can't find a way to write to (and read from) standard output; '-' is not understood as such, and '--to-stdout', as in gnu tar on UNIX, comes out as the literal filename with the lead --. Any clues?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to write files (filtered by date) from one directory to another. On my UNIX box, I can do this by writing to and reading from standard output:
tar xvf - --I includes . | (cd newdir ; tar xf - )
(My old tar, not gnu version, uses the include
command, vs. --after-date=xxx).
In GnuWin32 tar on a PC running XP, I can't find a way to write to (and read from) standard output; '-' is not understood as such, and '--to-stdout', as in gnu tar on UNIX, comes out as the literal filename with the lead --. Any clues?