Search Results

Search: Posts Made By: rwuerth
1,208
Posted By rwuerth
awk -F"/" '{ print $2}'...
awk -F"/" '{ print $2}' <your_file>
1,417
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,449
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,975
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,195
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,417
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
8,708
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...
2,957
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...
2,957
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,513
Posted By rwuerth
VAR1=41 VAR2=419068567777 ...
VAR1=41
VAR2=419068567777
VAR2=${VAR2#${VAR1}}
echo $VAR2
9068567777
3,801
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,354
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...
3,656
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 01:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy