Answer to Question #284094 in UNIX/Linux Programming for nat

Question #284094

Write a shell script for the following questions;


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


1
Expert's answer
2022-01-02T08:16:11-0500
#!/bin/bash 
input='filename.txt'
# read line by line from $input file
while read line; 
do 
  # print line
  echo $line; 
done < $input

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS