Menu

[Solved]Correct Following Shell Script Filename Footxt Read R Line Readline Line Redline Qwe Echo Q37216447

Correct the following shell script.

filename=”foo.txt”

while read r line
do
readLine=$line
if [[ $redLine = qwe* ]] ;

then
echo “$readLine”
read line
readLine=$line
if [[ $readLine = ewq* ]] ;

then
echo “$readline”
if
fi

done > “$filename”

Expert Answer


Answer to Correct the following shell script. filename=”foo.txt” while read r line do readLine=$line if [[ $redLine = qwe* ]] ; th… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *