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]

Re: Avoiding the need for Windows Explorer


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


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