Hi All,
I have the below command.
awk 'BEGIN {printf("%1s","cat")}' > temp.txt
can i do the same using echo ?If So, how?
Thanks
JS
Hi All,
I have the below command.
awk 'BEGIN {printf("%1s","cat")}' > temp.txt
can i do the same using echo ?If So, how?
Thanks
JS
May not be what you are looking for... but may be a lead..
echo "cat" | tr "\n" " " > temp.txt
See if you have printf(1) available directly as a shell command.
vnix$ printf %1s cat
catvnix$