Search Results

Search: Posts Made By: hohenheim
3,751
Posted By hohenheim
[AWK] process field which ends with .dat
This is my first day with awk scripting..Please pardon my ignorance, if any..

I am trying to remove all files ending with .dat

ls -1R xyz/ | awk '$1==*.dat{print "rm " $1}' | bash

ls -1R -->...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 01:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy