BreadCrumbs: Robots.txt : Tr Command

Tr Command

From Luke Jackson

Revision as of 23:21, 21 December 2008; Ljackson (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Jump to: navigation, search

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" ","

Convert string from upper case to lower case:

tr '[:upper:]' '[:lower:]'