Results 1 to 4 of 4
Folks,
I am trying to append two word in a line. I do not want to cut and store the first and second variable in two different variable and proceed. ...
- 12-22-2009 #1
Need help with one-liner
Folks,
I am trying to append two word in a line. I do not want to cut and store the first and second variable in two different variable and proceed. This is what i am looking for:
Suppose, I got a word "A.C".
I would to change it to "A.B.C.D" where B and D are the new words that needs to be added.
Any pointers?
-Ace
- 12-22-2009 #2
Have a look into the manual of GNU awk.
Debian GNU/Linux -- You know you want it.
- 12-22-2009 #3Linux User
- Join Date
- Aug 2006
- Posts
- 458
Code:$ string="A.C" $ IFS="." $ set -- $string $ echo "$1.B.$2.D" A.B.C.D
- 12-22-2009 #4


Reply With Quote

