IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New ya think I have enough fucking quotes in there!
fuckme.sh

var0=1
LIM=52
for i in $foo;
do
while [ "$var0" -lt "$LIM" ]
do
AWKARG=`cat ./rowapplications.txt | awk -F , '{print $'"$var0}"''`
/usr/bin/ssh tx-websvc02 ps -ef | grep `echo $AWKARG` >>foobar.out
var0=`expr $var0 + 1`
done


fugly but it works
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 57 years. meep
New That's a tame example.
A couple of months ago I ran into a quoting problem with awk. I was trying to multi-escape a single quote correctly so that bash would hand them to awk to place in the output.

Turns it that it can't be done! The quoting and escaping rules for bash collide with those for awk in a way that make it impossible to pass a single quote all the way through.

This solution is about one step before what I wanted:
http://stackoverflow...awk-inside-printf

Wade.
Just Add Story http://justaddstory.wordpress.com/
New actually it can be done,
declare a variable prior to the awk string, then print the variable in the awk statement
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 57 years. meep
New Yes. That's the way to do it.
Just Add Story http://justaddstory.wordpress.com/
New You just described...
The way I make my scripts.

I declare (nearly) everything that way and it makes it fun to write a HUGE command line as a bunch of VARs.
--
greg@gregfolkert.net
PGP key 1024D/B524687C 2003-08-05
Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C
New piece of fucking shit -n is intuitive
without it the ssh bails the loop after the first iteration
grumbles, 5 hours of google foo trying to get past the fucking foreign windows grade highschoolers whining about bash
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 57 years. meep
     ya think I have enough fucking quotes in there! - (boxley) - (5)
         That's a tame example. - (static) - (3)
             actually it can be done, - (boxley) - (2)
                 Yes. That's the way to do it. -NT - (static)
                 You just described... - (folkert)
         piece of fucking shit -n is intuitive - (boxley)

tar: Premature end of archive
159 ms