BreadCrumbs: Tr Command
Tr Command
From Luke Jackson
(Difference between revisions)
Revision as of 23:05, 21 December 2008 (edit) Ljackson (Talk | contribs) ← Previous diff |
Revision as of 23:10, 21 December 2008 (edit) Ljackson (Talk | contribs) Next diff → |
||
Line 4: | Line 4: | ||
tr '\t' ',' <input_file> <output_file> | tr '\t' ',' <input_file> <output_file> | ||
+ | |||
+ | Replace "New Line Character" (Return) with comma: | ||
+ | |||
+ | cat fontprds.txt | tr -s "\r\n" "," |
Revision as of 23:10, 21 December 2008
Examples
Convert tab delimited data into comma delimited:
tr '\t' ',' <input_file> <output_file>
Replace "New Line Character" (Return) with comma:
cat fontprds.txt | tr -s "\r\n" ","