Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: MrEddy
1,448
Posted By MrEddy
Awesomeness thanks! works like a charm
Awesomeness thanks! works like a charm
1,448
Posted By MrEddy
Use awk to change an IP format
Basically I am trying to run a standard output of IP address with a port number into another command but I need to change it from.

74.125.224.194.80 into 74.125.224.194:80

One command wants a...
2,628
Posted By MrEddy
Appreciate all the answers. So far I have made so...
Appreciate all the answers. So far I have made so much progress on my custom prompt and i'm quite happy with the results. It's so streamline and customized that it answers about 20 different...
2,628
Posted By MrEddy
Simplest way to format with If on stout?
So I'm trying to figure out a way to do some very simple formatting on standard output. I have a command that I will run (many many times) the output will either be true or false. So all i really...
28,707
Posted By MrEddy
Actually it looks like it is working with just...
Actually it looks like it is working with just $0. Yesterday it didn't seem like it was working. But, I left it running all night last night and this morning I have 4 errors reported and it gave me...
28,707
Posted By MrEddy
There is no input file its a simple command and...
There is no input file its a simple command and the results of the command are my input. There is no way to know what the output will be when the error occurs nor how many lines. I can presume it...
28,707
Posted By MrEddy
I'll have to try this when I get back into work...
I'll have to try this when I get back into work again. But, basically I'm looping a simple command and I only want to see output when it errors. The rest of the time I don't care and don't want to...
28,707
Posted By MrEddy
Awk print all lines on match?
Ok so I can use awk to match a pattern and print the whole line with print $0. Is there any way to just tell awk to print every line of output when the pattern matches?

I'm having it wait for the...
2,589
Posted By MrEddy
Sending awk output to nothing?
How can I direct awk output to go nowhere? I can write the data to a file easy enough or print it on the screen. But for this particular command I don't actually want the data and I don't want to...
9,271
Posted By MrEddy
DOH! god how could I miss something that...
DOH! god how could I miss something that stupid???? do you know how long I stared at that and didn't see that????

---------- Post updated at 10:09 AM ---------- Previous update was at 08:39 AM...
9,271
Posted By MrEddy
Afraid my version of freebsd is old and i don't...
Afraid my version of freebsd is old and i don't have -h

FreeBSD 5.3-RELEASE #0

---------- Post updated 03-03-11 at 07:41 PM ---------- Previous update was 03-02-11 at 10:05 PM ----------

Ok...
9,271
Posted By MrEddy
Typical output would be something like this. ...
Typical output would be something like this.

[/root]$ netstat -i 8 1
input (Total) output
packets errs bytes packets errs bytes colls
25658 ...
9,271
Posted By MrEddy
Running freebsd with bash. Mostly i'm using...
Running freebsd with bash.

Mostly i'm using it to watch overall throughput through the interfaces.

So normally all i'm doing is.

netstat -i 1 1

So i'll leave netstat running for a very...
9,271
Posted By MrEddy
Make netstat human readable?
Is there any way to make netstat output the information in a more human readable format? even if it's not exact? I don't even care if it has to round up/down to the nearest Meg to make it work.

I...
1,876
Posted By MrEddy
GNU bash, version 2.05b.0(1)-release...
GNU bash, version 2.05b.0(1)-release (i386-unknown-freebsd5.3)
Copyright (C) 2002 Free Software Foundation, Inc.
1,876
Posted By MrEddy
all I get is one file. 0B Nov 9 11:58...
all I get is one file.

0B Nov 9 11:58 {1..5}{1..5}

Don't buy crystal balls from walmart those things are not reliable. You gotta get it from costco. :)

---------- Post updated at 03:01 PM...
1,876
Posted By MrEddy
Only seems to create one file not 10000 files. ...
Only seems to create one file not 10000 files.

I'm using Bash with Free BSD.
1,876
Posted By MrEddy
Contents of the files do not matter, they can be...
Contents of the files do not matter, they can be empty. I just need a bunch of files.
1,876
Posted By MrEddy
Creating trash data?
How could I go about creating some trash files to use for testing. All I need is for files to exist and the data in them really doesn't matter.

I need to do some work and testing with scripts and...
1,506
Posted By MrEddy
If statement in my prompt?
Anyone know how I can do a simple if statement in my prompt? As it is now I run a few commands to customize my prompt using command substitution. What I would prefer is if I could change the color...
3,579
Posted By MrEddy
Yea see that works the problem is I have no way...
Yea see that works the problem is I have no way to limit what find picks for files. The directory has 100,000 files with names like.

1276675022.1276721280

So the whole problem is avoiding the...
3,579
Posted By MrEddy
just tells me -t is an illegal option so my mv...
just tells me -t is an illegal option so my mv doesn't seem to support -t
3,579
Posted By MrEddy
That seems to work. Its copy which isn't ideal...
That seems to work. Its copy which isn't ideal because that adds an additional step of having to delete files afterwards as well. Can you think of any way to do this and the result is the files are...
3,579
Posted By MrEddy
Copying files automatically
Ok here is my issue. I have processes which will get screwed up and not run because certain log directories wind up filled too much and a directory will have 100,000 files in it. The only way to fix...
6,781
Posted By MrEddy
gzip to read logs
Ok here is my trouble. I run scripts whenever I am investigating problems. One of those scripts simply goes to a log folder and runs


gzip -cd * | grep error | wc -l


This tells me the number...
Showing results 1 to 25 of 45

 

Featured Tech Videos

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