Search Results

Search: Posts Made By: karthikengox
7,525
Posted By Akshay Hegde
Okay try this, it checks each field (column) in a...
Okay try this, it checks each field (column) in a line, if match is true then it will substitute new date format.

/usr/xpg4/bin/awk 'BEGIN {
...
7,525
Posted By Akshay Hegde
Please use codetags! Post your original input
Please use codetags!

Post your original input
7,525
Posted By Akshay Hegde
Please use Code tags! There should be space...
Please use Code tags!

There should be space not 'test, it should be ' test
7,525
Posted By Akshay Hegde
Please show how did you try with codetags!
Please show how did you try with codetags!
7,525
Posted By Akshay Hegde
Change awk to nawk As Don says always, ...
Change awk to nawk

As Don says always,

If you want to try this on a Solaris/SunOS system, change awk at the start of this script to /usr/xpg4/bin/awk ,/usr/xpg6/bin/awk , or nawk
7,525
Posted By Akshay Hegde
May be you are on solaris/sunos, try this ...
May be you are on solaris/sunos, try this

nawk 'BEGIN{
mon="JanFebMarAprMayJunJulAugSepOctNovDec"
}
{
if(match($0,/...[[:space:]]..[[:space:]]..../))
{
m =...
7,525
Posted By Akshay Hegde
Welcome to forums, if you have gawk try ...
Welcome to forums,

if you have gawk try

$ cat file
10@@|SWIFT MT568 Extract@@|Apr 14 2014 5:47:52:563PM@@|Apr 14 2014 4:33:47:663PM@@||##|

awk --re-interval 'BEGIN{
...
Showing results 1 to 7 of 7

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