Hi all
  I've a bash related question: I wish to translate one ascii file into
another one, with only translating the ' occurences, to ''  (one quote
to two quotes).
  That is, the tr command should be well suited for this purpose,
although the results are not as expected.

  The command: tr -t "'" "['*2]" < chevaux.txt > chevaux2.txt
  leaves the chevaux2.txt file quite identical to chevaux.txt file.
  In other words, the quotes are not doubled.

  The tr man page says the -t flag make tr behave like SystemV Unix,
while no flag make it comply with the BSD fashion.

  BSD fashion: second expression "['*2]" being reduced to the first
expression "'"
  SystemV fashion: first expression "'" being reduced(?) to the second
expression "['*2]"

  However, it seems impossible to translate one quote into two quotes,
practically.
  Why, and where is the error?

  Thanks for your responses.

  Jean Francois



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to