Article 4TXYX Bash stdout redirect with L/F suppression ?

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.latest?d=yIl2AUoC8zA latest?i=Lg13Ohjh-14:_UZmo_JbJoQ:F7zBnMy latest?i=Lg13Ohjh-14:_UZmo_JbJoQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=Lg13Ohjh-14:_UZmo_JbJoQ:gIN9vFwLg13Ohjh-14
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments