Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ help w/homework

Posted by: ch4920 Apr 28 2008, 09:12 PM

newbie here. i am writing a bash script and when i use wc -l filename to get a line count it returns the line count and the file name. i would like to get the line count and store it in a variable. also i need to get the process id of the script and store that in a variable too. any help is greatly appreciated. thank you

Posted by: michaelk Apr 29 2008, 01:20 PM

At least your up front about needing help with homework however like most sites we are not here to do it for you. I see no problems with asking for specific help. First there us lots of information that can be found on BASH scripting by searching the web including variables.

Powered by Invision Power Board (
© Invision Power Services (