Question: file: #!/ bin/bash File='data_file.t xt' i=1 While read line; do echo Line No.$i :$line i=$((i+1)) done
#!/bin/bash
File='data_file.txt'
i=1
While read line; do
echo Line No.$i:$line"
i=$((i+1))
done<$file
is this a valid shell script that helps to read data from a file if not please modify it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
