tr
Sun Visualization Products
matthew at sunpix.UUCP
Sat Nov 18 04:38:36 AEST 1989
In article <15949 at bloom-beacon.MIT.EDU> jik at athena.mit.edu (Jonathan I. Kamens) writes:
}
} No, the 'tr' command is not capable of changing a single character
}in the input to multiple characters of output.
}
} You could probably do it really easily in perl, though :-)
}
} Just another person who is amused by all the perl hackers but hasn't
}gotten around to learning perl himself,
}
}Jonathan Kamens USnail:
}MIT Project Athena 11 Ashford Terrace
}jik at Athena.MIT.EDU Allston, MA 02134
}Office: 617-253-8495 Home: 617-782-0710
True, but this particular problems can be handled by AWK also.
awk '{printf ("%s\r\n", $0)}' $*
[Note: code written on the fly, and untested - but should work]
--
Matthew Lee Stier |
Sun Microsystems --- RTP, NC 27709-3447 | "Wisconsin Escapee"
uucp: sun!mstier or mcnc!rti!sunpix!matthew |
phone: (919) 469-8300 fax: (919) 460-8355 |
More information about the Comp.unix.questions
mailing list