How can I add string to the end of the file without line break?
for example if i\'m using >> it will add to the end of the file with line break:
cat list
You can use the -n parameter of echo. Like this:
$ touch a.txt $ echo -n "A" >> a.txt $ echo -n "B" >> a.txt $ echo -n "C" >> a.txt $ cat a.txt ABC
EDIT: Aha, you already had a file containing string and newline. Well, I'll leave this here anyway, might we useful for someone.