Search Results

Search: Posts Made By: mbubb
11,094
Posted By mbubb
Bash script to extract spf records
Hello

I am trying to generate a script to run on worldwide firewalls.

I need the spf block for large sites like google, etc so I can essentially whitelist google sites for users.

(Google...
2,516
Posted By mbubb
Aha - shift is your friend, I believe. Also...
Aha - shift is your friend, I believe.

Also you want to use either "$*" (and slice it up) or "$@" - not "$#".

Check this out from the "Advanced Bash Scripting guide".

Go to:

Internal...
1,605
Posted By mbubb
proposed additions to the 'books' subforum in the 'Dummies' forum
Dear admins,

Over in the "UNIX for Dummies" forum there is a subforum:
"I'm new to Unix. Which books should I read?"

The 2 Bash guides and the Linux guide on this page:

The Linux...
8,045
Posted By mbubb
Ummm - I meant to also mention a useful command...
Ummm - I meant to also mention a useful command on many flavours of *nix

apropos

If you are on a system and are wondering about (for example) partitioning utilities, type:

"apropos...
8,045
Posted By mbubb
Hello - I am not sure if this is what you...
Hello -

I am not sure if this is what you mean, but go to your search engine of choice and search on "UNIX Rosetta Stone" and you will find things like this:

Rosetta Stone for Unix...
2,516
Posted By mbubb
Hello FlyingSquirrel's answer works great. ...
Hello

FlyingSquirrel's answer works great.

I thought 3 points might be useful:

1)
Going back to your orig attempt, your line 7:

count = $(expr $count +1)

would work if you used...
Forum: Solaris 12-21-2008
2,395
Posted By mbubb
Hello - I am not sure what the 'best' one...
Hello -

I am not sure what the 'best' one is, however as you are evaluating, look at Sun's VirtualBox. I have am Ubuntu laptop and use VirtualBox to run Solaris and WinXP. The laptop is a dual...
1,933
Posted By mbubb
Hello - A pretty open ended question with...
Hello -

A pretty open ended question with lots of embedded issues. I am not an expert but have been working as a UNIX/ Linux Admin for about 3 yrs.

Pretty good place to start (IMHO) are some...
2,020
Posted By mbubb
Hello I tried it and got a similar err. But...
Hello

I tried it and got a similar err. But I took the offered solution and dropped out the 'else' part of the statement.

awk '{ if (NR>8) { print $1, $2 } }' /tmp/transport.txt > newfile ...
111,874
Posted By mbubb
Hello - By superuser do you mean sudo? ...
Hello -

By superuser do you mean sudo?

If so do you have access to the /var/log directory?

$ cat /var/log/auth.log | grep rm

You will see entries like this:

Dec 14 00:37:32 test-laptop...
3,504
Posted By mbubb
Hello - On my system (Linux 2.6 kernel) you...
Hello -

On my system (Linux 2.6 kernel) you dont have to restart cron nor the system if you change an individual crontab.

First thing I would check is the local system mail for corasc. I think...
6,390
Posted By mbubb
Hello Nicos, I think what you might be...
Hello Nicos,

I think what you might be seeing is a confusion between the Bash builtin command 'time' and the GNU program time.

If you type

time -v aout

does it return an error? (on my...
5,109
Posted By mbubb
Hello - Have you tried using 'sort -u' ? ...
Hello -

Have you tried using 'sort -u' ?

For example:

sort -u oldfile.txt > nodup.txt

yrs

Michael
Showing results 1 to 13 of 13

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