Looking for a simple ways to output the byte at which two strings differ. Here
is one:
cmp (echo hello) (echo help) | cut -d' ' -f5 | tr -d ,
Any other suggestions?
--
Yorick
From: Andreas Schwab [SNIP]
Subject: Re: mkfifo and tee within a function
Sent: 2006-11-28 15:09
Nathan Coulter [SNIP] writes:
Could anyone please provide a few pointers on how to accomplish this, and
perhaps explain the results from the above examples?
A process writing
Hi,
Within a function, I'd like to print some input to the terminal and at the same time
store it in a fifo fostore some input in a fifo, but am getting mixed results. In this
example, I thought hello would be output twice:
$cmd_print () { mkfifo zout ; (tee zout ); cat zout ; rm zout; }
From: Chet Ramey [EMAIL PROTECTED]
Subject: Re: read command and ascii null as delimiter
Sent: 2006-09-08 08:49
Nathan Coulter wrote:
Feature request: an option, maybe -0 to use ascii null as the delimiter
for the read command. It would make the following two commands produce
Chet Ramey wrote:
Nathan Coulter [EMAIL PROTECTED] writes:
read -d $'\0' will do most of what you want, with one limitation. The
This is actually equivalent to read -d ''.
So, to recap, the way to read null-delimited data is:
printf 'hello\0there' | { while read -d
I'd like to use a bash script in a pipe to process null-delimited output:
produce null-delimited output | myscript results
Since the read command seems to currently be unable to use ascii null as a
delimiter, I'm using xargs to parse the file and feed to a subshell:
*** contents of