Search Results

Search: Posts Made By: rwuerth
1,513
Posted By rwuerth
awk -F"/" '{ print $2}'...
awk -F"/" '{ print $2}' <your_file>
1,587
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.
1,658
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
10,283
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 06-19-2012
4,974
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,...
5,666
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
...
Forum: HP-UX 11-17-2011
10,085
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...
3,398
Posted By rwuerth
Simply negate the tests so you will print the...
Simply negate the tests so you will print the data line if it is not a part
of the "set" array, and print all lines that don't start with "|" as below,
assuming you want to see all the headers and...
3,398
Posted By rwuerth
Seems to me that you could use modulus to...
Seems to me that you could use modulus to simplify the tests.

Your number x (assumed to be less than or equal to 64?)

if x % 8 = 0 it's in the right hand column
if x % 8 = 1 it's in the...
1,916
Posted By rwuerth
VAR1=41 VAR2=419068567777 ...
VAR1=41
VAR2=419068567777
VAR2=${VAR2#${VAR1}}
echo $VAR2
9068567777
4,202
Posted By rwuerth
for i in `find . -type f | xagrs grep -l...
for i in `find . -type f | xagrs grep -l "UTF\-16"`
do
iconv -f UTF-16 -t UTF-8 $i > $i.old
sed 's/UTF-16/UTF-8/g' $i.old > $i
rm -f $i.old
done




You may want to check the command you...
2,425
Posted By rwuerth
In this case, since the actual process name is...
In this case, since the actual process name is hidden in a variable, I'd go with adding a second pipe to your statement like so:


pe -ef | grep -q $process | grep -v grep


The -v option...
4,099
Posted By rwuerth
You would have to redirect 'stderr' to a file for...
You would have to redirect 'stderr' to a file for the 'ls' command so that the message does not display when there is an error in the script.

After running the command, you can either check the $?...
Showing results 1 to 13 of 13

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