Search Results

Search: Posts Made By: mikesimone
3,054
Posted By mikesimone
Perhaps it should not make a difference, but the...
Perhaps it should not make a difference, but the fact is that when I export it, it works, and when I don't, it doesn't. However, I'll post my whole horribly awful file here, and perhaps you'll see...
3,054
Posted By mikesimone
Thank you kindly for your help. I'll make the...
Thank you kindly for your help. I'll make the changes to my syntax that you describe. However, to answer some of your concerns:




I have that in there for now, because I originally had several...
3,054
Posted By mikesimone
Function ignoring global variables
Hi there.
I'm writing a function to which I want to pass a global variable. For some reason, it's ignoring the variable.


#!/bin/bash
#####################################
#Variable...
11,287
Posted By mikesimone
I was experiencing something similar today. Try...
I was experiencing something similar today. Try this:

awk -F"|" '{print $1,$2,$3,system("echo" $4),$5,$6,system("convert.sh" $12 $13 $9 $10) 2>/dev/null }' input_file


It worked in my...
2,476
Posted By mikesimone
Remove improperly placed newlines
Hello, there. I have a file that's a horrible, horrible mess. (Basically, it's an export from a firewall config.) The people who generated the file didn't think that putting a newline in the middle...
3,726
Posted By mikesimone
Try this: ...
Try this:


nicstat-1.22/nicstat.Ubuntu7.i386 -i eth4 5 | awk '{print $1 " " ($3+$4)/1024" MBps" > /tmp/foo}'
3,579
Posted By mikesimone
I'll try that. Thanks!
I'll try that. Thanks!
3,579
Posted By mikesimone
Redirecting to different output files with awk.
Well, it didn't take me long to get stumped again. I assure you that I'm not mentally deficient, just new to scripting.

So, here's the gist. I want to redirect output from awk based off of which...
13,775
Posted By mikesimone
Breaking it out into a separate file worked,...
Breaking it out into a separate file worked, that's perfect.

You guys rock. Hopefully, I'll not have to bother you further.

THANK YOU!
13,775
Posted By mikesimone
How can I build the string before I call the...
How can I build the string before I call the system on the string?
The basic flow is this:

Read the next line in the file.
Cycle through each field in the file until it sees "Network...
13,775
Posted By mikesimone
Ah. The missing %s is what did it. Thank you. ...
Ah. The missing %s is what did it. Thank you.

So, armed with that information, I'm now getting a syntax error when I do this:


{if (($i == "Network address") && ($(i+1) !~...
13,775
Posted By mikesimone
Passing argument to system call in awk script
So, I have this script. It reads a CSV file that has a mixture of object names with IP addresses (parsing out that part I have working), and object names which have a DNS name. I want to be able to...
Showing results 1 to 12 of 12

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