The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
help with scrpit
.
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
:
help with scrpit
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
04-29-2008
chella
Registered User
Join Date: Oct 2007
Posts: 75
Hi,
Without using any loops you can get the same output. Just give a try on it.
Code:
yes "hello world" | head -50| grep -n "hello world" | awk -F: '{print $2" "$1}'
Regards,
Chella
chella
View Public Profile
Find all posts by chella
Find chella's past nominations received
Find chella's present nominations given