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


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)

Windows 2008 R1

Thanks in Advance