I am looking for shell command to find files starting with name and then list the path for file
For example: I want to seach all files which are starting with RET or LSH or PDM and the list the full path name
Please help
foreach rpt_file ( ` ls ${xyz/*.rpt ` )
if ( -e $rpt_file ) then
echo $rpt_file
echo " ### "
set filename = ` echo $rpt_file | sed "s/^.*(RET LSH PDM PSW )\///g" `
echo $filename
set cpath = ` echo $rpt_file | sed "s/\(^.*(RET LSH PDM PSW )\)\(\/.*\)/\1/g" `
echo $cpath