The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
script error
.
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
:
script error
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
09-01-2007
cfajohnson
Shell programmer, author
Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,380
Quote:
Originally Posted by
MANISH KU
Hi gurus,
I have a script in which i m using following line of code
no_record=echo `wc -l filename` | cut -f1 -d" "
Code:
no_record=$( wc -l < filename )
cfajohnson
View Public Profile
Visit cfajohnson's homepage!
Find all posts by cfajohnson
Find cfajohnson's past nominations received
Find cfajohnson's present nominations given