Search This Blog

Sunday, October 1, 2023

Shell script 16

Question: Read the file content by read command

#!/usr/bin/bash 

while read msg

do

    echo "$msg"

done  <  "/home/kalam/filename.sh"

Explanation:

<  flag is used to open the file
read command is used to read the content

No comments:

Post a Comment

What is the sanity checks you have done for STA?

 Sanity checks for STA: Linking Checks: We need to check., is there any missing modules or missing pins in a library. this is done by link c...