While

From wikieduonline
Jump to navigation Jump to search


#!/bin/bash
while true; do
  ((my_var++))
  echo $my_var
done


  • cat your_file.txt | while read i; do echo "YOUR_TEXT $i"; done
  • cat your_file.txt | while read i; do echo "$(date) $i"; done


Related terms[edit]


See also[edit]