Search Results

Search: Posts Made By: John Mac
2,123
Posted By John Mac
Thanks, guys
Cheers, guys.

quirkasarus: Great minds, and all that: that's exactly what I ended up doing (and then scrapped it - see below).

binlib: You've cracked it! SYMTAB holds the variable names...
2,123
Posted By John Mac
AWK: Retrieving names of variables passed with -v
I'm an experienced awk user, but this one has me stumped. I have an awk script which is called from a UNIX command line as you'd expect:

myscript.awk -v foo=$1 -v bar=$2 filename

My...
10,375
Posted By John Mac
You're right
You're right, as ever;-) Any suggestions on really making the p/w invisible?
10,375
Posted By John Mac
This isn't 100% secure because anyone who runs...
This isn't 100% secure because anyone who runs the command ps -ef will see your user's password. To make the password invisible, use this syntax:

echo $password | sqlplus -s user@database <<EOF
10,375
Posted By John Mac
A very late response, but here goes. There's a...
A very late response, but here goes. There's a known bug in Solaris's implementation of uuencode; try typing this

unset LC_CTYPE

immediately before the uuencode command line and your error...
13,351
Posted By John Mac
Hi, Raynon - Two easy ways, asusming you're...
Hi, Raynon -

Two easy ways, asusming you're using a file:

1. awk -F',' '{print $1}' infile > outfile
2. cut -d',' -f1 infile > outfile

I've quoted the comma delimiter in both cases to...
78,561
Posted By John Mac
Although Mark's is an elegant solution, there's a...
Although Mark's is an elegant solution, there's a simpler way to do and still remain independent of filename length: use cut's field delimiter option:

f=NLL_NAM_XXXXX.XXXXXXX_1_1.txt
s=`echo $f |...
Showing results 1 to 7 of 7

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