First of all, "whereis" is is "not found". But, as I've said before, the shell is "/bin/sh" so I know the location. "ls -l /bin/sh" yields:
#ls -l /bin/sh lrwxrwxrwx 1 root root 30 Dec 6 1998 /bin/sh -> /opt/K/SCO/Unix /5.0.5Eb/bin/sh which seems to indicate that this is just a plain "sh" shell. But, I don't think it helps to establish the version and the capabilities of this shell. I appreciate all of your help. I'll just live with the wc -l to verify the records were written correctly. Thanks again. |
I have no "whereis" but, as I said before the /etc/passwd file shows that each user is assigned /bin/sh. So, I know the location of the shell. "ls -l /bin/sh" yeilds:
#ls -l /bin/sh lrwxrwxrwx 1 root root 30 Dec 6 1998 /bin/sh -> /opt/K/SCO/Unix /5.0.5Eb/bin/sh which doesn't seem to help much. I can live with the current solution and use "wc -l" to verify all lines were written. Thanks for all of your help. Link |
Sorry. I didn't see the second page so I posted again.
|
Quote:
Here is a possible solution: count=`expr $count "+" 1` The last option would be using some program like "dc" or "bc" to perform the math. |
All times are GMT -5. The time now is 02:28 PM. |