Difference between revisions of "While ... do"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
  
 
* <code>cat your_file.txt | [[while read]] i; do echo "YOUR_TEXT $i"; done</code>
 
* <code>cat your_file.txt | [[while read]] i; do echo "YOUR_TEXT $i"; done</code>
* <code>cat your_file.txt | [[while read]] i; do echo "$(date) $i"; done</code>
+
* <code>cat your_file.txt | [[while read]] i; do echo "$([[date]]) $i"; done</code>
  
  

Revision as of 06:38, 21 February 2021

Advertising: