Avoiding the need for Windows Explorer
zzapper
david@tvis.co.uk
Sun Feb 6 15:12:00 GMT 2005
Hi,
It often seemed odd that some tasks were best done by Windows Explorer, eg the selecting, copying
and pasting of a group of files from one distant directory to another; it being tedious and error
prone to type complex paths at the prompt.
The solution for many cases is simple
go to src directory say:
cd /d/backup/oldsites/something/site/
at the prompt type
S=`pwd`
go to the destination directory
cd /c/inetpub/wwwdev/www.something.co.uk/website
you can then type something like
cp $S/*.php .
BTW if you already know this it may seem obvious, but although I consider myself a *nix whiz, I've
only just sussed this!!
zzapper (vim, cygwin, wiki & zsh)
--
vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"
http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips
More information about the Cygwin-talk
mailing list