rsync /usr/share/xemacs/blah/bla dest:/usr/share/same/long/path/here Wouldn't it be nice to have an option to just say: rsync --same-path /some/long/local/path dest:
On Wed, 2008-03-12 at 08:25 -0400, Neal Becker wrote:> rsync /usr/share/xemacs/blah/bla dest:/usr/share/same/long/path/here > > Wouldn't it be nice to have an option to just say: > > rsync --same-path /some/long/local/path dest:Two ways to do this: 1. Use --relative (but this may affect anchored filters if you use any): rsync --relative /some/long/local/path dest:/ 2. Use bash's brace expansion: rsync {,dest:}/some/long/local/path Matt
Neal Becker wrote:> rsync /usr/share/xemacs/blah/bla dest:/usr/share/same/long/path/here > > Wouldn't it be nice to have an option to just say: > > rsync --same-path /some/long/local/path dest: >FOO=/usr/share/xemacs/same/long/path rsync $FOO dest:$FOO ?? Cheers, Tim.
Maybe Matching Threads
- using tcltk in R under ESS/XEmacs on Windows
- PLEASE IGNORE PREVIOUS: How to configure ess-5.2.0beta3-1.i586.rpm, Xemacs and SuSE 9.0?
- How to configure ess-5.2.0beta3-1.i586.rpm, Xemacs and SuSE 9.0?
- [LLVMdev] llvm-gcc 2.5 libexec installed without program-prefix
- not updating changed local files