Search Results

Search: Posts Made By: expert
1,170
Posted By RudiC
man bash: So - the tr variable doesn't seem to...
man bash:
So - the tr variable doesn't seem to start with the chars TR.
3,395
Posted By Don Cragun
echo $a | awk '{printf("%9.9s\n", $1...
echo $a | awk '{printf("%9.9s\n", $1 "00000000")}'
or with your latest example:
awk '{printf("%9.9s\n", $1 "00000000")}' input
2,129
Posted By juzz4fun
It can also be done either of the below way: ...
It can also be done either of the below way:

awk '{print $1 " " $2 " " $3 " " $6 " " $7 " " $8 " " $9}' file

awk '{$4=" "; $5=" "; print}' file

Is this what you were looking for?
2,252
Posted By Scrutinizer
It is because of the back ticks. Try: a=$(echo...
It is because of the back ticks. Try:
a=$(echo "$str" | sed 's/</\\</g')
echo "$a"

or
a="${str%%<*}\\<${str#*<}"

or (bash/ksh93)
a=${str/</\\<}


--
with back ticks:
a=`echo "$str" |...
Showing results 1 to 4 of 4

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