LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-25-2006, 09:51 AM   #16
cslink23
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0

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.
 
Old 11-25-2006, 01:10 PM   #17
cslink23
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 11-25-2006, 01:12 PM   #18
cslink23
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry. I didn't see the second page so I posted again.
 
Old 11-26-2006, 02:22 AM   #19
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by cslink23
#ls -l /bin/sh
lrwxrwxrwx 1 root root 30 Dec 6 1998 /bin/sh -> /opt/K/SCO/Unix/5.0.5Eb/bin/sh
SCO... that brings back memories.

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.
 
  


Reply

Tags
awk, bash, script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
perl script to parse this file ohcarol Programming 10 11-02-2006 09:50 AM
daunting task - read wml input, insert variables into URL, DL page, parse, write file jeffreybluml Programming 1 05-12-2005 06:31 AM
Need help with perl/bash script to parse PicBasic file cmfarley19 Programming 13 11-18-2004 05:06 PM
use php script to parse a file. blackzone Linux - Software 1 07-07-2004 04:43 AM
How to read ans parse MS word file using a Linux Shell script. Alek Linux - General 2 11-10-2003 02:07 PM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration