Search Results

Search: Posts Made By: johnhips
2,322
Posted By johnhips
So much thanks Chubler_XL !!!! ----------...
So much thanks Chubler_XL !!!!

---------- Post updated at 07:56 PM ---------- Previous update was at 07:29 PM ----------

Can I use printf in this awk to pad my variable 'n' counter???

...
2,322
Posted By johnhips
Pad zeroes first field in a Delimited file
Need help. I tried using an awk command to pad zeroes. Unfortunately, the "|" pipe delimited character is gone when I tried to write the records to another file.


awk -F \| ' {$1=sprintf("%06s",...
2,777
Posted By johnhips
This is my desired output and I cannot get it to...
This is my desired output and I cannot get it to work.


"KEYRECORD"|"SA ID"|"PER ID"|"SP ID"|"ACCT ID"|"PREM ID"|"PHONE"|"NA
1|" "|" "|"3197691605"|" "|"3197691657"|"...
2,777
Posted By johnhips
Thanks for the reply! Everything worked! ...
Thanks for the reply! Everything worked!

This time I have to check first if $4 is blank or not. Then create a new record key if $5 does not match the previous value.


My problem right now is...
2,777
Posted By johnhips
Adding a new column as sequential number but with a little complication
I am a newbie to shell programming and maybe somebody can help me out a little. Here's my problem:

I got a PIPE delimited file with header record. I need to add a new column name as RECORDKEY. I...
Showing results 1 to 5 of 5

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