[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Scripting again...



Hi All,

	how do you change (from the command line) with (sed/awk/... 
anything that's available in the installation environment)

        "text:\n someothertext" to "text: someothertext"

	The trick is in the newline of course.

	I now do with

	cat output.txt | tr '\n' '!' | sed -e 's/text:! someothertext/text: someothertext/g' | tr '!' '\n'

	But I bet somebody can do better...

	Btw.: how about renaming sed to led, because it is clearly
not a stream editor but a line editor ;-)

Sincerely,

Jan



Reply to: