how to append a char or strong
i`am new to shell scripting , just few days before only started to learn......
the query is ||| how to append a char | string ||| #!/bin/bash echo -n "one"\"two"\"three" #END above method is working well but below method is not working ???? pls help me friends..... #!/bin/bash one=one two=two three=three echo -n $one\$two\$three #END |
Your post makes little sense; please explain in detail exactly what it is you're trying to do? And why are you escaping those quotes?
To append a char to a string in the shell, something like: Code:
var="Hello ther" |
Quote:
so please help me friends...... Quote:
|
I'm not going to go to great length to determine why you're writing this script as you have - it looks rather over-complicated to me. However, simply re-writing the below line:
Code:
u_name=${uf_name:0:1}\"${ul_name:0:1}"\"${r_num}" Code:
u_name="${uf_name:0:1}${ul_name:0:1}${r_num}" Code:
sasha@reactor: uf_name='john' Sasha |
thanks GrapefruiTgirl .........
|
You're welcome :) I hope that solves it for you. If so, you can mark the thread [SOLVED] using the Thread Tools menu above your first post.
Cheers! |
All times are GMT -5. The time now is 11:00 PM. |