how to "ls" file starting with ./
When i do below command, i get the output:
linux% find ./work_work -type f
./work_work/123.log
./work_work/12212.log
./work_work/842150451_ETS160903_11062009.log
./work_work/bad_summary/-842150451_ETS160903_11062009.log
./work_work/bad_summary/ 123.log
./work_work/bad_summary/-123.log
./work_work/bad_summary/files_to_be_deleted.txt
./work_work/bad_summary/sc
./work_work/bad_summary/sc1
./work_work/bad_summary/sc2
./work_work/bad_summary/12-3.log
./work_work/bad_summary/12 212.log
When i do below command, i get the output:
linux% ls work_work/| grep -P "^( |-)"
123.log
-123.log
-842150451_ETS160903_11062009.log
How to get exactly like 1st out put (starting with ./) with second command (using ls)?
Urgent, thankful for those who can help me..
|