Feed aggregator
Cannot award a posting with bits!
Hi all,
I've just now wanted to award 1000 Bits to following posting and I noticed there is no "coin"/award button anymore :confused:
http://www.unix.com/302423330-post2.html
Regards,
pc
EDIT: I guess it's turned off since we now have this Thanks button?
I've just now wanted to award 1000 Bits to following posting and I noticed there is no "coin"/award button anymore :confused:
http://www.unix.com/302423330-post2.html
Regards,
pc
EDIT: I guess it's turned off since we now have this Thanks button?
Renumber column using Awk
I have a data set similar to that below and I need to add a column $2 (which numbers the lines from 1- end)
Text Input Output x y z
Text Input Output x y z
Text Input Output x y z
Text Input Output x y z
I also need to have various column widths so $1 is 6 spaces $2 is 5, $3 is 5, $4 is 7. I have used awk '{print FNR "\t" $2}' and now have a tab delineated file (which is numbered). Can anyone help adjusting the output? I do not understand how to use the printf commands to specify column width.
Thank you for any assistance you are willing to share
Text Input Output x y z
Text Input Output x y z
Text Input Output x y z
Text Input Output x y z
I also need to have various column widths so $1 is 6 spaces $2 is 5, $3 is 5, $4 is 7. I have used awk '{print FNR "\t" $2}' and now have a tab delineated file (which is numbered). Can anyone help adjusting the output? I do not understand how to use the printf commands to specify column width.
Thank you for any assistance you are willing to share
Solaris 2.6 restore from tape
Hope someone can help me here...
I've got to restore an E450 with 300MHz cpus which was running Solaris 2.6 from tape. Regrettably the boot drive has failed.
I've access to the first release of Solaris 2.6 CD's and to a set of Solaris 9 CD's.
I remember that different E450 CPUs needed different releases of the 2.6 media set in order to boot correctly.
The tape was written using ufsdump.
So, to my questions?
Will this E450 boot from the Solaris 2.6 CD?
If not, will booting from the Solaris 9 CD be able to ufsrestore and then installboot correctly?
According to the notes I have of the restore process, while booted from the CD I'd issue this command to install the boot block:
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
but if I'm booted from a Solaris 9 CD would that result in a valid boot block for Solaris 2.6?
Many thanks for any and all assistance.
I've got to restore an E450 with 300MHz cpus which was running Solaris 2.6 from tape. Regrettably the boot drive has failed.
I've access to the first release of Solaris 2.6 CD's and to a set of Solaris 9 CD's.
I remember that different E450 CPUs needed different releases of the 2.6 media set in order to boot correctly.
The tape was written using ufsdump.
So, to my questions?
Will this E450 boot from the Solaris 2.6 CD?
If not, will booting from the Solaris 9 CD be able to ufsrestore and then installboot correctly?
According to the notes I have of the restore process, while booted from the CD I'd issue this command to install the boot block:
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
but if I'm booted from a Solaris 9 CD would that result in a valid boot block for Solaris 2.6?
Many thanks for any and all assistance.
SCSI drive
Hi i ahve a SCSI drive that it use to work but now is not working. The Sun machine can not read the drive. My question is there is any other way to get the data back from the SCSI drive? I think if i replace the chip board on teh SCSI drive it might help to just buy a new Board but there is any UNIX command to fix the hard drive like in windows we use CHKDSK /f/r
How can i extract the data out it a SCSI drive? doe smy question?
thank you
How can i extract the data out it a SCSI drive? doe smy question?
thank you
What's wrong with my script ....
Please see below mentioned my script ... it ran once without any issue .... then after it is not coming out .... please suggest what is wrong?
Code: #!/bin/ksh
## if (( ${num_errors} > 0 ));
export ACULOG=/home/varshnes/input
export num_errors=10
**** Search for 'Start correcting roll up conflicts' ****
STRING=$(find $ACULOG -name "*" | xargs grep -i "Start" | grep -i "correcting" | wc -l)
echo $STRING
if (( ${STRING} > 0 ));
then
echo -n "$num_errors "
num_errors=`expr $num_errors - 1`
fi
STRING=$(find $ACULOG -name "*" | xargs grep -i "End" | grep -i "correcting" | wc -l)
echo $STRING
if (( ${STRING} > 0 ));
then
echo -n "$status "
num_errors=`expr $num_errors - 1`
fi
echo -n "$num_errors "
if (( ${num_errors} > 0 ));
then
echo "SEND MAIL NOW"
fi
exit 0
Code: #!/bin/ksh
## if (( ${num_errors} > 0 ));
export ACULOG=/home/varshnes/input
export num_errors=10
**** Search for 'Start correcting roll up conflicts' ****
STRING=$(find $ACULOG -name "*" | xargs grep -i "Start" | grep -i "correcting" | wc -l)
echo $STRING
if (( ${STRING} > 0 ));
then
echo -n "$num_errors "
num_errors=`expr $num_errors - 1`
fi
STRING=$(find $ACULOG -name "*" | xargs grep -i "End" | grep -i "correcting" | wc -l)
echo $STRING
if (( ${STRING} > 0 ));
then
echo -n "$status "
num_errors=`expr $num_errors - 1`
fi
echo -n "$num_errors "
if (( ${num_errors} > 0 ));
then
echo "SEND MAIL NOW"
fi
exit 0

Recent comments
2 weeks 12 hours ago
2 weeks 4 days ago
14 weeks 3 days ago
17 weeks 5 days ago
21 weeks 6 days ago
22 weeks 8 hours ago
22 weeks 23 hours ago
24 weeks 2 days ago
27 weeks 2 days ago
29 weeks 9 hours ago