BreadCrumbs: Tr Command

Tr Command

From Luke Jackson

Revision as of 10:41, 27 February 2014; Ljackson (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Jump to: navigation, search


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:]'

Convert Windows Line Break to Unix

tr -d "\r"
Personal tools