Search Results

Search: Posts Made By: halplessProblem
8,145
Posted By halplessProblem
Thanks guys those work great!
Thanks guys those work great!
8,145
Posted By halplessProblem
sure can before: RR 20100828 00599...
sure can

before:

RR 20100828 00599 0001230111 +00000000123 XXX 100111
SS 20100828 00599 0001230111 +00000000123 XXX 100222
TT 20100828 00599 0001230111 +00000000123 ABC 100333...
8,145
Posted By halplessProblem
awk script replace positions if certain positions equal prescribed value
I am attempting to replace positions 44-46 with YYY if positions 48-50 = XXX.

awk -F "" '{if (substr($0,48,3)=="XXX") $44="YYY"}1' OFS="" $filename > $tempfile

But this is not working, 44-46 is...
Showing results 1 to 3 of 3

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