The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
retrieved multiple lines on multiple places in a file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
retrieved multiple lines on multiple places in a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
02-14-2008
ghostdog74
Registered User
Join Date: Sep 2006
Posts: 2,557
Quote:
Originally Posted by
dala
Please help me get start it. I used while loop but the output wasn’t what I want it.
Code:
while read -r line do case $line in first*|second*|third* ) echo "$line";; esac done < "file"
ghostdog74
View Public Profile
Find all posts by ghostdog74
Find ghostdog74's past nominations received
Find ghostdog74's present nominations given