Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where can I find help...

Status
Not open for further replies.

luissort

Programmer
Dec 10, 2002
3
BR
Morning to all,

New member coming and I´d like to know where can I find a place in the web with publish and free books about commands and shells in Unix / Linux World.
Eg: I´m trying to do this:
W_OK=`/aux/interface/desenv/data/MYFILE.txt | wc -l`
In order to test after with the command:
if [ $W_OK > 2 ]; then
echo Stop... There are more errors then permitted, please call Application Manager
exit 5
fi
I don´t know anything about Unix but I´m trying hard... so I need to know where to find it ...
ps: In this example above I´ve tried also:
W_OK=`wc -l | /aux/interface/desenv/data/MYFILE.txt`

Thanks for any help,
Luis
 
syntax of wc
wc options filename
or
command options filename | wc options

learn the command:
man commandname
i.e. man wc -----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
 
Hi Folks,
thanks all for your prompt support, I loved this site...
I would like to report how I solved my problem :^)

W_OK=`PG test.txt | wc -l`
if [ OK > 1 ]; then
echo Ops... Big problem... call operator...
fi

Once again, thanks for your support,

Luis
 
Sorry Folks,
Once again the command. I forgot $
W_OK=`PG test.txt | wc -l`
if [ $W_OK > 1 ]; then
echo Ops... Big problem... call operator...
fi

Once again, thanks for your support,

Luis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top