Bash stdout redirect with L/F suppression ?
by bjh from LinuxQuestions.org on (#4TXYX)
Hi,
#!/bin/bash
Is it possible to suppress the linefeed on a 'command>>file.txt' StdOut redirection?
My script will ultimately have two instances of 'command>>file.txt'. I'd like the L/F suppressed on the first one, but not the second, so that the pair results in only one new line in the file for each processing cycle.
Thanks,
Brian H.


#!/bin/bash
Is it possible to suppress the linefeed on a 'command>>file.txt' StdOut redirection?
My script will ultimately have two instances of 'command>>file.txt'. I'd like the L/F suppressed on the first one, but not the second, so that the pair results in only one new line in the file for each processing cycle.
Thanks,
Brian H.