Write a shell script for the following questions;
Accessing data from a file (the file could be database, log, or text file)
#!/bin/bash
input='filename.txt'
# read line by line from $input file
while read line;
do
# print line
echo $line;
done < $input
Comments
Leave a comment