Difference between revisions of "Tr"
From Teknologisk videncenter
m (New page: = UNIX cut command = To convert whitespace "tab" and "spaces" to a single space to make it <pre> [root@mars ~]#echo -e "God dag alle\tmand\t \t og kvinder." | tr -s "\t" ' ' God dag ...) |
m |
||
Line 1: | Line 1: | ||
− | |||
To convert whitespace "tab" and "spaces" to a single space to make it | To convert whitespace "tab" and "spaces" to a single space to make it | ||
<pre> | <pre> |
Revision as of 11:55, 14 April 2009
To convert whitespace "tab" and "spaces" to a single space to make it
[root@mars ~]#echo -e "God dag alle\tmand\t \t og kvinder." | tr -s "\t" ' ' God dag alle mand og kvinder.