Two short scripts for Cygwin-Windows interoperation

Rex Godby rwg3@york.ac.uk
Thu Jan 4 16:54:00 GMT 2007


Two tiny Cygwin shell scripts may be of use. Each script has a single active
line, which I include here (to try these from the command line, of course
replace 1ドル with your desired argument):
1. To quickly find files and directories in "My Documents" and Desktop (down to
a certain depth): 
find "/cygdrive/c/Documents and Settings/$USER/Desktop" \
 "/cygdrive/c/Documents and Settings/$USER/My Documents" \
 -maxdepth 3 | grep "1ドル"
2. To open an Explorer window in a specified directory (given in Cygwin style),
or to open a document in the proper Windows application:
/cygdrive/c/WINDOWS/explorer `cygpath -w "1ドル"`
Rex
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /