Difference between revisions of "Prepend"

From wikieduonline
Jump to navigation Jump to search
Line 16: Line 16:
 
* {{Append}}
 
* {{Append}}
 
* {{tee}}
 
* {{tee}}
 +
* {{sed}}
  
 
[[Category:Computing]]
 
[[Category:Computing]]

Revision as of 14:56, 28 September 2023

Prepend a space at the beginning of lines:

   sed s/^/" "/


prepend_space () {
         sed s/^/" "/
}


Related

See also

Advertising: