Search Results

Search: Posts Made By: beppler
3,323
Posted By beppler
for next loop
How can I read 1 line at a time into a for next loop?

for line in `cat foo`
do
something to the whole line
done


Thanks

Brandt
2,551
Posted By beppler
All works!! Again Thanks!! Brandt
All works!!

Again Thanks!!

Brandt
2,551
Posted By beppler
Radoulov, Your backticks worked well, I will...
Radoulov,

Your backticks worked well, I will use that!!

Thanks All!!
2,551
Posted By beppler
What would be the better way? Please &...
What would be the better way? Please & Thanks!!
2,551
Posted By beppler
1 liner question
This works:

nslookup `uname -n`|tail -2|awk -F: '{print $2}'

This does not

aa=`nslookup `uname -n`|tail -2|awk -F: '{print $2}'`


Why???

Solaris v10

Thanks
Brandt
3,293
Posted By beppler
no go ugh!!
no go

ugh!!
3,293
Posted By beppler
That is what I thought it ment but does not seem...
That is what I thought it ment but does not seem to work!! Solaris v10

Thanks
3,293
Posted By beppler
With the single [0-9] I don't pick up any lines....
With the single [0-9] I don't pick up any lines. That is why I placed 4 [0-9] in a row, but I don't allways have 4 digits in number it would be unknown..

Thanks

Brandt
3,293
Posted By beppler
Sed question
I need to replace the numbers with a new string.
How can I give a wildcard for the different # of numbers

sed '/abcdef/s/abcdef=*/abcdef=999999/'<foo>foo1

From: To:...
5,189
Posted By beppler
Exactly what I needed!!! Much thanks to you!!
Exactly what I needed!!!

Much thanks to you!!
5,189
Posted By beppler
I am so sorry I am not clear on what I need.. ...
I am so sorry I am not clear on what I need..

"running" will be on a line by its self, there will never be "running" and an S-whaever on the same line.

Again thanks

Brandt
5,189
Posted By beppler
Sorry for the misunderstanding!! S* Stands...
Sorry for the misunderstanding!!

S* Stands for S73isid
S750vxpal.gridnode
S75vxpal.StorageAgent
S75vxsmfd
...
5,189
Posted By beppler
OK fixed the syntax error but what I was...
OK fixed the syntax error but
what I was hoping for is something like this
IP address (Field 5) then the "S" Files
ie:
196.196.1.10 S*
196.196.1.10 S*
196.196.1.10 S*
196.196.1.10 S*...
5,189
Posted By beppler
Ran it got this?? /tmp/wbe]# nawk -f...
Ran it got this??

/tmp/wbe]# nawk -f bep.awk rc2.d_listing > ./junk1
nawk: newline in string S73isid S7... at source line 2
context is
n=split("S73isid S750vxpal.gridnode...
5,189
Posted By beppler
nawk help
What am I doing wrong here? I get syntax error.

I am trying to parse a file looking for the lines with "running" as the first field then print the 5th field, then looking at the 9th field for...
Showing results 1 to 15 of 15

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