Link to home
Start Free TrialLog in
Avatar of bje
bjeFlag for United States of America

asked on

how to remove white space from a value

Hello,
I am pulling a value from a file using this command,  I would then need to remove the white space from the value.

For example,
examplevalue=$(awk -F"\t" 'NR==30 {print $9}' $file )

Returns value
aaaa bbbb cccc

final value should look like this
aaaa-bbbb-cccc
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial