Sponsored Content
Full Discussion: Who can help me?
Top Forums Shell Programming and Scripting Who can help me? Post 302934811 by RudiC on Wednesday 11th of February 2015 04:44:24 AM
Old 02-11-2015
So why doesn't "someone of your team" do the script?

---------- Post updated at 10:44 ---------- Previous update was at 10:42 ----------

Anyhow, try sth. like
Code:
while read DAY TIME A B C D E TRASM RETR DR; do echo $DAY ${TIME%:*} "NEWNAME$((++CNT))" $TRASM $RETR $DR; done < file3
2015-02-10 10:00 NEWNAME1 trasm:1266245958 retrasm:439137 dropped:36504
2015-02-10 10:00 NEWNAME2 trasm:1339998535 retrasm:86120 dropped:47549
2015-02-10 10:00 NEWNAME3 trasm:1362335738 retrasm:84469 dropped:48248
2015-02-10 10:00 NEWNAME4 trasm:1362335738 retrasm:84469 dropped:4824
2015-02-10 10:00 NEWNAME5 trasm:1362335738 retrasm:84469 dropped:4824

in bash (or other recent shell).
 
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy