This is the mail archive of the cygwin-talk@cygwin.com mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Avoiding the need for Windows Explorer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]