Avoiding the need for Windows Explorer

Brian Dessent brian@dessent.net
Mon Feb 7 09:34:00 GMT 2005


zzapper wrote:

> 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 .

I utterly fail to see the point to this.  Why not just do it all one on
cp command line?  You're still typing or using tab completion for two
'cd' commands, when you could just do

cp <type or use tab completion for location 1>/*.php <type or use tab
completion for location 2>

You're already doing the <type or use tab completion> part for both
'cd's so why involve all the extra steps?

Brian



More information about the Cygwin-talk mailing list