Search Results

Search: Posts Made By: kridhick
3,204
Posted By Don Cragun
The obvious, simple thing to do to fix this is to...
The obvious, simple thing to do to fix this is to change the line:
ls system_inbound/RSK_* | awk -F'_' 'to:
cd system_inbound && ls RSK_* | awk -F'_' '
Then the awk script is dealing with...
3,204
Posted By Don Cragun
Try: ls RSK_* | awk -F'_' ' $2 == last2 { ...
Try:
ls RSK_* | awk -F'_' '
$2 == last2 {
printf("rm -f \"%s\"\n", last0)
}
{ last0 = $0
last2 = $2
}'
If that correctly lists the rm commands you want to run, change the last line of the...
Showing results 1 to 2 of 2

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