|
|
stopping or suppress echo from printing in new lines (c) - linux shell scripting - Shell Scripting
|
Views : 287
|
|
Tagged in : Shell Scripting
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
c - c suppress trailing new line
Example:
for (( i = 0 ; i < 10 ; i++ ))
do
echo -e 'ramram'
done
OUTPUT:
ram
ram
ram
ram
ram
ram
ram
ram
ram
ram
Example with -c option:
for (( i = 0 ; i < 10 ; i++ ))
do
echo -e 'ram\c'
done
OUTPUT:
ramramramramramramramramramram
|
|
By RameshKumar, On - 2010-01-27 |
|
|
|