Search Results

Search: Posts Made By: gagan8877
63,881
Posted By gagan8877
Cool!
Thanks Yoda - that worked like a charm!
63,881
Posted By gagan8877
Thanks what about 0?
Awesome Guys!

wc -l * | awk '{print $1-2 " " $2}'

and

wc -l * | awk '$2=="total" { $1-=A; print ; next } { $1-=2; A+=2; print }'

both work great

but what about 0 row count? It shows...
63,881
Posted By gagan8877
File Row Line Count without Header Footer
Hi There!

I am saving the file count of all files in a directory to an output file using:

wc -l * > FileCount.txt

I get:

114 G4SXORD
3 G4SXORH
0 G4SXORP
117...
1,949
Posted By gagan8877
TR -d Help
I want to strip off '\032' character from a file using:

tr -d '\032' < oldfile > newfile

this outputs the contents of oldfile to newfile, but I wanna do that in the same file i.e. remove the...
1,698
Posted By gagan8877
Those are 2 cmds - I am trying to fit this in...
Those are 2 cmds - I am trying to fit this in Datastage Cmd Exec Activity. I need 1 cmd with some kindda pipe or something. Is it possible to do that in one?
1,698
Posted By gagan8877
Translating the same file
I want to strip off '\032' character from a file using:

tr -d '\032' < oldfile > newfile

this outputs the contents of oldfile to newfile, but I wanna do that in the same file i.e. remove the...
Forum: SCO 02-09-2009
3,721
Posted By gagan8877
Printer is slow
The syslog shows:
FEB 5 17:42:07 NGXXXXX SYSLOG: SCOADM: LOCALHOST {SCO_NETWORKSPOOLER} {LPD} ERR
OR SCO_OFACE_MSG_ERROR {ERROR {{SCO_OSA_ERR_PROCESSING_FAILURE {GENERAL FAILURE
OCCURED IN...
4,448
Posted By gagan8877
Thnx
Fantastic. Thanks a lot cfajohnson.
4,448
Posted By gagan8877
Can you please show me the syntax of how to check...
Can you please show me the syntax of how to check the exit code in getdata() ?
4,448
Posted By gagan8877
Return vs. Echo
Hi cfajohnson

Thanks for the reply. In the code below GetData() calls get_primary and is_primary functions

GetData()
{

prim_mach=`get_primary`
gprim_mach=`is_primary`

echo...
4,448
Posted By gagan8877
Return vs. Echo
In a Ksh functions, when you have both echo and return respectively - what does it do. E.g.

Func B ()
{
.....
{
.....
echo $Varaible
}
Return 0
}


Func A ()
{
$Var1 = Func B()...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 09:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy