Search Results

Search: Posts Made By: Karpak
5,340
Posted By Karpak
Try this.
#!/usr/bin/ksh
pseq=""
pver=""
phub=""
pfed=""
pdat=""
cat a.txt | grep `date '+_%d%m%Y_'` | sort -t'_' +2 +3 +4 > out.txt
while IFS="_" read hub feed tdate seq ver ; do
if [[ "$seq" !=...
2,149
Posted By Karpak
Thank you very much
Dear Scrutinizer,

Based on data with slight modification. Your logic works fine.

Thank you very much

Karpak
2,149
Posted By Karpak
Help in writing a KSH script to filter the latest record?
Hi All,

I have a text file with the folowing content.


BANGALORE|1417|2010-02-04 08:41:04.174|dob|xxx
BANGALORE|1416|2010-02-04 08:23:19.566|dob|yyy
BANGALORE|1415|2010-02-04...
Showing results 1 to 3 of 3

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