#!/bin/bash
#reading data from a file
count=1
cat test1 | while read line
do
        echo "Line $count: $line"
        count=$[ $count + 1 ]
done
echo finished processing the file

~                                    

 

相关文章:

  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2022-03-09
  • 2022-12-23
  • 2022-02-27
  • 2021-07-26
相关资源
相似解决方案