ls and echo issue in cygwin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ls and echo issue in cygwin

vmnaren

I tried to list the contents of a directory in DOS command prompt and redirecting it to a file.This did not add the contennts at all.
“ls $root/virusScanBase >> $resultfile”

As an alternative to this I tried to use
"echo $root/virusScanBase/*" but this just returns * and not the directory contents(in Linux it works as expected by listing direcory contents)

cygwin-1.5.25-15
ActivePerl-5.8
Windows 2008 R1

Thanks in Advance

Naren