Search Results

Search: Posts Made By: snoman1
2,320
Posted By snoman1
Add the word "prefix" to beginning of line using sed
SUSE linux
bash shell

this works
test -d /tmpp && echo "directory exists" || echo "directory doesn't exists" |sed -e "s/^/prefix /"
prefix directory doesn't exists

but why doesn't...
1,797
Posted By snoman1
4,746
Posted By snoman1
DNS circular verify script
I have modified a script to do a circular DNS look up.

The theory is this
for a given subnet build a range if IP's
do a reverse look up on those IP's
take the output of the reverse look up...
4,116
Posted By snoman1
Search for a string, then append character to end of that line only
I have 2 files that I am working with

$ cat file1
server1
server3
server5
server6
server8


$ cat file2
server1;Solaris;
server2; SLES;
server3;Linux;
server4; Solaris;
server5;SLES;...
8,427
Posted By snoman1
not pretty, but its working hpasmcli -s...
not pretty, but its working

hpasmcli -s "SHOW IML" |sed "s/'//g" |xargs -L 2 > /tmp/file1
hpasmcli -s "SHOW IML" |sed "s/'//g" |xargs -L 2 |awk '{print $4, $5}' |while read LINE; do
date...
8,427
Posted By snoman1
HP IML log formatting
HP hardware
Linux SLES version 10
shell script, ksh or sh

I am taking the output of the IML log and ultimately want to find only entries 30 days old. I am getting some unexpected results along...
10,783
Posted By snoman1
getent hosts
korn shell script on Solaris

getent hosts <hostname> returns
IP FQDN

But I just want the output to be like this
<hostname> IP

things I have tried so far
getent hosts <hostname> |awk...
1,722
Posted By snoman1
Here is what my final code looks like once I had...
Here is what my final code looks like once I had cleaned it up

nawk -F\; '$7==n' n="${NUM}" file


$7 is the column I want to search for a specific number. This number may exist in other...
1,722
Posted By snoman1
awk == with a variable
korn shell script on a Solaris 10 system

for NUM in 1234 1235; do cat <file> |awk -F\; '$7==$NUM {print $0}' ; done

If the numbers 1234 or 1235 appear in the 7th column, print the line

...
Forum: Solaris 05-18-2012
5,064
Posted By snoman1
prtdiag -v troubleshooting
selected lines from the output of the "prtdiag -v" command on a T5240 SUN server running Solaris 10.

Are the following known as FRU names and what do they mean?
MB/CMP0/BR0/CH0/D0...
8,142
Posted By snoman1
getting closer. learned how to combine regexp ...
getting closer. learned how to combine regexp
cat /etc/fstab |sed -e '/FOO\|BOO/!s/\:\//\:\/BAR\//g'
8,142
Posted By snoman1
sed with multiple regexp
Dealing with Linux servers

script would be in korn or bash shell syntax

file is /etc/fstab

I want to insert something if regex is matched to all matched lines in the /etc/fstab file and...
Forum: Solaris 10-25-2011
10,176
Posted By snoman1
/etc/hosts.allow on Solaris 10
I added some entries in the /etc/hosts.allow on a Solaris 10 system.

Do I need to bounce inetd?

I have read some accounts where any changes made to the /etc/hosts.allow will be taken in...
3,021
Posted By snoman1
Yes, this is what I wanted. I had forgotten...
Yes, this is what I wanted. I had forgotten about using 2 variables and then calling on them like you did. This works.

Thank You
David
3,021
Posted By snoman1
script to mount from vfstab file
I am setting up a test system and grabbed the /etc/vfstab file from the prod system. I don't want to overlay the /etc/vfstab file from the prod box on the test box so I just copied the prod...
3,046
Posted By snoman1
anyone had any luck in running the...
anyone had any luck in running the /etc/init.d/network command on Solaris 9?
Forum: Solaris 09-15-2010
9,378
Posted By snoman1
I concur with the output of this solution. ...
I concur with the output of this solution.

My circumstances.
Solaris 9 system
2 main interfaces with tons of virtual interfaces

for some undetermined reason some of my virtual interfaces go...
3,046
Posted By snoman1
bring up/down numerous interfaces
On a Solaris 9 system I had something happen to some of my interfaces; for some reason half of them went down. Since I have over 30 different Virtual IP's (or logical IP's) up on ce10 I don't want...
5,846
Posted By snoman1
print 2 lines above regexp
I am on a Solaris 10 x86 system

sample code

before3
before2
before1
group
after1
after2
after3

I want to grab the second line above my regexp

regexp=group
I want to grab ONLY...
3,095
Posted By snoman1
tar command
I have a file with a bunch of absolute path file names. Is there a way with the tar command to read in these files and tar them up?

(I found this list of files using the locate command and I...
17,774
Posted By snoman1
THat did the trick. Thanks go to the 2...
THat did the trick.

Thanks go to the 2 posters
17,774
Posted By snoman1
script to convert epoch into human-readable
This is what I have to start out with

more file
1208217600
1208131200
1193806800

I want to convert the epoch column into a human-readable format. My file has hundreds of these epoch times...
Showing results 1 to 22 of 22

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