Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Colin Bull — — source: Usenet: comp.databases.informix
Fernando Ortiz wrote
>There's a workaround if the unix command only returns ONE integer value.
>As you can see I'm not a shell programmer, but the following script do a line count in the file >given as first parameter and then
returns the line count as the exit code.
>[ortiz@adela bin]$ cat cuenta
>#/bin/bash
>a=`wc -l $1`
>b=`echo $a | cut -f 1 -d \\ `
>exit $b
On Tru64 'wc -l $1 ' returns more than 1 value (filename)
`cat $1 | wc -l ` works better for me.
Colin Bull
c.bull@videonetworks.com
sending to informix-list
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.