1

I often need to do some text processing for windows network drive. Since there are so many of them I have almost all my drive letters are used (I think T is still available).

I something need to do:

cd "\lonshr-cad\cad\Feeds\BondPricesNYClose\" or less "\lonshr-cad\cad\Feeds\BondPricesNYClose\BondPrices_display_16112011.txt"

but my Cygwin shows that the MS-DOS sytle path detected.

Is there a quick way to access these file?

Dean
  • 1,103
  • 4
  • 17
  • 29

2 Answers2

3

Try with the normal slash "/" or with single quotes instead of double quotes. If you want to use an absolute path then use /cygdrive/t for the T drive

golimar
  • 2,419
  • 1
  • 22
  • 33
3

Just use forward slashes:

cd //lonshr-cad/cad/Feeds/BondPricesNYClose

and

less //lonshr-cad/cad/Feeds/BondPricesNYClose/BondPrices_display_16112011.txt

You can also create aliases that can cd to these directories or less specific files. That way you don't have to type the entire UNC path (or copy/paste/change slashes).

Daniel Haley
  • 51,389
  • 6
  • 69
  • 95