Search Results

Search: Posts Made By: rwuerth
2,696
Posted By rwuerth
So you are using Activestate Perl on a Windows...
So you are using Activestate Perl on a Windows box and want a file that will transfer to a *nix box with a *nix type of End of Line character?

Try this, I've heard it should work, but haven't...
1,891
Posted By rwuerth
Look back to my post. I created the output as you...
Look back to my post. I created the output as you requested in your first post using only sed. Did you need something different?
1,891
Posted By rwuerth
echo '<TRANSFORMATION TYPE ="Lookup Procedure"...
echo '<TRANSFORMATION TYPE ="Lookup Procedure" TYPE ="Stored proc">' | sed 's/.*TYPE ="\([^"]*\)"/\1/'

You need to have a regular expression that saves the value after both "TYPE=" in your line....
1,198
Posted By rwuerth
awk -F"/" '{ print $2}'...
awk -F"/" '{ print $2}' <your_file>
1,161
Posted By rwuerth
sed -e 's/\[/_/g' -e 's/\]/_/g' your_file >...
sed -e 's/\[/_/g' -e 's/\]/_/g' your_file > new_file
5,689
Posted By rwuerth
I don't know "tshark" but having done a google...
I don't know "tshark" but having done a google search, I think you should look into using the "-R <read/display filter>" option.

Can't be of more help other than to provide this link:

tshark...
1,897
Posted By rwuerth
You have to combine all the output together to...
You have to combine all the output together to send to mailx, so use ( ) around all output (both the echo statement and the uuencode statement).

Also, don't pipe your echo output into uuencode....
1,406
Posted By rwuerth
quick and dirty... echo 121231212 | sed -e...
quick and dirty...

echo 121231212 | sed -e 's/\(.\)/\1 /g'


This will put a space after your last number however.
Forum: HP-UX 11-15-2012
6,753
Posted By rwuerth
Thanks Alister! I had briefly thought about using...
Thanks Alister! I had briefly thought about using the cal output for day names, but my friend demanded FULL names! :rolleyes:

I did not think about having awk handle a names list, with the split...
Forum: HP-UX 11-15-2012
6,753
Posted By rwuerth
Thanks for the replies. I should state, that this...
Thanks for the replies. I should state, that this is just a fun exercise thing, it's not for production use.

The gist of the problem is can one tell the day of the week if given a valid date in...
Forum: HP-UX 11-14-2012
6,753
Posted By rwuerth
Find Day of Week
In HP-UX the date command does not have the "-d" switch like some other *nixes do. I'm working a simple script to tell me, given the day, month and year what day of the week that falls on.
...
Forum: HP-UX 11-13-2012
7,247
Posted By rwuerth
Is the LV for /home all you want to do? Or do...
Is the LV for /home all you want to do? Or do you want to create a mirrored boot disk?
1,444
Posted By rwuerth
I like sed a lot, but I see ugliness in trying to...
I like sed a lot, but I see ugliness in trying to get values from one file and use them to delete values in another file using sed.

I think:

grep -vFf data2delete file2

may work well.
...
Forum: HP-UX 11-01-2012
8,926
Posted By rwuerth
Noting these lines from your log of your ssh...
Noting these lines from your log of your ssh session:


Last successful login: Fri Sep 28 14:52:23 METDST 2012 10.4.3.97
Last authentication failure: Fri Sep 28 14:52:16 METDST 2012 10.4.3.97...
Forum: HP-UX 10-25-2012
4,732
Posted By rwuerth
I have old information on this, but supposedly...
I have old information on this, but supposedly the EFI boot manager should automatically scan for bootable devices prior to presenting you with the boot menu. Assuming you used the same DVD on both...
2,451
Posted By rwuerth
Not sure this would be the only problem here, but...
Not sure this would be the only problem here, but you do need to group your output together.

Assuming your test.txt has all your To:, From:, Subject: and body text and sendmail is your mail...
2,150
Posted By rwuerth
When you say it's matching any string of...
When you say it's matching any string of characters, can you give an example of how you're using the pattern to match?

If they are being used as shell metacharacters, it should probably match a...
Forum: HP-UX 06-19-2012
2,889
Posted By rwuerth
From an old training manual I have, as of release...
From an old training manual I have, as of release 11.17 changing IP addresses for heartbeats or monitored subnets, requires the cluster to not be running.

The only cluster changes that could be...
Forum: HP-UX 06-19-2012
4,171
Posted By rwuerth
I had a more complicated script written a long...
I had a more complicated script written a long time ago to find out this information,
but after realizing due to VBE's post (thank you VBE) that I could get all the info I
required in one place,...
Forum: HP-UX 06-19-2012
9,554
Posted By rwuerth
Script to find what netprinters are configured with what model
Following this thread :
https://www.unix.com/hp-ux/189023-solved-way-tell-printer-used-configured-print-queue.html
This is rwuerth's nice contribution!


I had a more complicated script written a...
5,397
Posted By rwuerth
Try to put this into psuedo code. From what your...
Try to put this into psuedo code. From what your saying, I interpret your psuedo code to look something like the following:

Main.ksh

while <condition: filename "*.run" exists>
do
...
984
Posted By rwuerth
sed -ne 's/^[^/]*\(.*\)$/\1/p' data.out
sed -ne 's/^[^/]*\(.*\)$/\1/p' data.out
Forum: HP-UX 11-18-2011
14,321
Posted By rwuerth
You're on an older version of the OS, but I know...
You're on an older version of the OS, but I know in current versions using LVM, you can't create more than one volume group on one disk.
Forum: HP-UX 11-18-2011
8,671
Posted By rwuerth
What was the time savings? Also, you said,...
What was the time savings?

Also, you said,

And proceeded to show your input files.

Was there a question there that you wanted to ask?

Is it working as you'd expect it to?
Forum: HP-UX 11-17-2011
8,671
Posted By rwuerth
Don't use a loop to get this done, your...
Don't use a loop to get this done, your processing the 2.5GB details.txt file for each name in emp.txt. So if you had 2 names in emp.txt your processing 5GB of detail.txt. 10 names = 25GB. It doesn't...
Showing results 1 to 25 of 138

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