Search Results

Search: Posts Made By: serm
7,712
Posted By serm
Simple Script looking for Hard Coded Variables
Hi Guys

Looking for a little help with a script to grep all files looking for hard coded variables - ie its IP address... so we know which files to look at before an IP change...

This is what...
1,505
Posted By serm
$$ makes it unique - by using the PID of the...
$$ makes it unique - by using the PID of the process
eg
echo "test" > outfile$$ will create an outfile[PID]
1,763
Posted By serm
Perl Question
Hi everyone

I am not even a novice at Perl scripting .. but had to edit one the other day. The only way I can get it to run is by prefixing 'perl' before running it - ie # perl scriptname

I am...
3,298
Posted By serm
Spot on ! thanks Muxman !
Spot on ! thanks Muxman !
3,298
Posted By serm
Hi its still not working !! :confused: i've...
Hi

its still not working !! :confused: i've been scratching my head all day over it !

Here is a part of the rc.tcpip file - just the one line needs changed:
# Start up syslog daemon (for error...
3,298
Posted By serm
I still makes no change : sed 's/syslogd...
I still makes no change :

sed 's/syslogd $src_running /$src_running "-N" /g' rc.tcpip > ./temp
outputs:
start /usr/sbin/syslogd "$src_running"

i need it to read:
start /usr/sbin/syslogd...
3,298
Posted By serm
SED help
Hi guys

I am trying to append a switch to a line in an rc file, but it doesnt seem to be working:

when i run this command :

cat rc.tcpip |sed "s/syslogd "$src_running" /syslogd...
2,327
Posted By serm
Works perfectly !! Many thanks!! I think i...
Works perfectly !! Many thanks!!

I think i can work out what its doing as well, exept the "++" - what does that do?
2,327
Posted By serm
Duplicate Lines x 4
Hi Guys and Girls


I'm having trouble outputing from a sorted file... i have a looooong list of PVIDs and need to only output only those which occur 4 times!! Any suggestions?

ie I need to...
1,324
Posted By serm
Mail Scripting
see the thread

Edit the line with the ###EDIT on it to begin:
print -p d

rather then print -p p
1,579
Posted By serm
top man !!
top man !!
1,579
Posted By serm
Thanks Vino... i was hoping for something i could...
Thanks Vino... i was hoping for something i could script, rather than copy them individually...
cheers anyway
1,579
Posted By serm
confused in australia
hi!

i have a lot of files (800+) (in windows format - i.e. they have spaces in the filename) that i need to copy to disk... if i write a for loop to ls the files and copy it fails as the file it...
1,954
Posted By serm
What type of backup - mksysb?
What type of backup - mksysb?
3,580
Posted By serm
Cheers ZB But I have a lot of these to...
Cheers ZB

But I have a lot of these to resolve and didnt want to have to sed out each of them in turn....
3,580
Posted By serm
Resolve a Variable
Hi

I have a variable which is a path ie:

UBERROR=/cobwrk/mchr/prodsup/ub/wrk/../error
is there anyway I can get the output of an echo to read:

#echo $UBERROR
/cobwrk/mchr/prodsup/ub/error...
Showing results 1 to 16 of 16

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