Tr: Difference between revisions

From DWIKI
Tony (talk | contribs)
Created page with "=HOWTO= ==Concatenate all lines in a file== comma separated: tr '\n' ',' < file.txt"
Tag: wikieditor
 
Tony (talk | contribs)
mNo edit summary
Tag: wikieditor
 
Line 3: Line 3:
comma separated:
comma separated:
  tr '\n' ',' < file.txt
  tr '\n' ',' < file.txt
[[Category:Shell]]

Latest revision as of 12:10, 26 February 2026

HOWTO

Concatenate all lines in a file

comma separated:

tr '\n' ',' < file.txt