Question #284094

Write a shell script for the following questions;


Accessing data from a file (the file could be database, log, or text file)


Expert's answer

#!/bin/bash 
input='filename.txt'
# read line by line from $input file
while read line; 
do 
  # print line
  echo $linedone < $input
LATEST TUTORIALS
APPROVED BY CLIENTS