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 |
||
(3 intermediate revisions by the same user not shown) | |||
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> | ||
Line 5: | Line 4: | ||
God dag alle mand og kvinder. | God dag alle mand og kvinder. | ||
</pre> | </pre> | ||
+ | [[Category:Linux]][[Category:UNIX]][[Category:Linux Command]] |
Latest revision as of 06:57, 3 May 2012
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.