Search Results

Search: Posts Made By: mady135
3,147
Posted By jim mcnamara
awk -F, '$6=="" {$6="00"} {print}' infile...
awk -F, '$6=="" {$6="00"} {print}' infile >newfile
3,147
Posted By Don Cragun
If I read the requirements correctly I think the...
If I read the requirements correctly I think the request was for something more like:
awk -F, '$6 ~ "^[[:blank:]]*$" {$6="00"} {print}' OFS=, infile >newfile
1,304
Posted By bakunin
Just an observation: the additional blank char is...
Just an observation: the additional blank char is at position 80, which is the default line width for many programs. Maybe it is just a "line break in disguise" and you could get rid of it by...
2,011
Posted By Scrutinizer
Hi, use $( ) instead of ${ } (and use double...
Hi, use $( ) instead of ${ } (and use double quotes around $str1)
18,744
Posted By hergp
Maybe with sed: cut ... | sed 's/ *$//'
Maybe with sed:

cut ... | sed 's/ *$//'
17,008
Posted By methyl
Sorry, you may have been too quick while I was...
Sorry, you may have been too quick while I was editing and re-editing the post. I realised that michaelroxar17's correction didn't actually work and went off to test an alternative (which is in the...
Showing results 1 to 6 of 6

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