Search Results

Search: Posts Made By: Agoyals1986
1,427
Posted By Agoyals1986
Latest_Time=`find . -name '*.tps' -exec sed...
Latest_Time=`find . -name '*.tps' -exec sed '/endTime/!d; s/{//; s/,.*//' {} + | sort -r | head -1 | cut -d: -f2` #latest epoch time
Earliest_Time=`Latest_Time-(86400000*$No_OF_DAYS)` #earliest...
1,427
Posted By Agoyals1986
Remove lines having older end time
Hi,

In my bash script I want to add a code which remove all entries older than x days.

To simplify this problem, I have divided into 3 parts. (2 parts are done looking answer for 3rd part.)
...
Forum: Solaris 09-29-2017
1,478
Posted By Agoyals1986
@Scrutinizer: thank you its working perfectly for...
@Scrutinizer: thank you its working perfectly for Solaris and sub directories as well
Forum: Solaris 09-28-2017
1,478
Posted By Agoyals1986
Thanks @RudiC working fine on linux but its not...
Thanks @RudiC working fine on linux but its not working on Solaris
Forum: Solaris 09-28-2017
1,478
Posted By Agoyals1986
Find highest value of a particular property in multiple files
I have multiple files with pattern of "*.tps (example:tps-20170307170421560-1053.tps)" in my log directory(files are in different sub directories).

entries in files are given below. I want to...
Forum: Red Hat 06-23-2017
1,908
Posted By Agoyals1986
Delete files older than 1week(dates need to be calculate based on file name)
Objective: We have multiple files in a folder and we want to delete all files except for last 1 week files.

Note: We are copying these files from original location to this temporary location. So...
Showing results 1 to 6 of 6

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