Search Results

Search: Posts Made By: kridhick
3,016
Posted By kridhick
Thanks a lot Don
Thanks a lot Don
3,016
Posted By kridhick
I having minor issue if my directory name...
I having minor issue if my directory name contains "_" symbol

ls system_inbound/RSK_* | awk -F'_' '
$2 == last2 {
printf("rm -f \"%s\"\n", last0)
}
{ last0 = $0
last2 = $2
}'

Here...
3,016
Posted By kridhick
:b::b::b: Thanks a lot Don. It works...
:b::b::b:

Thanks a lot Don. It works perfectly.
3,016
Posted By kridhick
Yes, I want the oldest files per code needs to be...
Yes, I want the oldest files per code needs to be deleted and retain only the most recent one related to that code.
3,016
Posted By kridhick
Delete all files if another files in the same directory has a matching occurrence of a specific word
he following are the files available in my directory
RSK_123_20141113_031500.txt
RSK_123_20141113_081500.txt
RSK_126_20141113_041500.txt
RSK_126_20141113_081800.txt
RSK_128_20141113_091600.txt
...
Showing results 1 to 5 of 5

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