Hello everybody,
I'm new to bash scripting (and scripting in general) but I'm making decent progress in the hands-on solutions I need...
I've encountered a problem that seemed very simple to me at first, but had me going on for hours. Maybe you can help me.
Say I have an input text file like this...
test2:
SOL 0.031 7
SOL 0.032 8
SOL 0.033 8
SOL 0.034 8
SOL 0.035 9
SOL 0.036 9
SOL 0.037 9
SOL 0.038 10
SOL 0.040 10
SOL 0.041 11
SOL 0.042 11
SOL 0.043 11
I'm writing the coordinate of the second column into an array if the number in column 3 does not appear n times (thrice in my case) in the file.
if I echo out my array I get
0.031
0.038
0.040
I iterate through the array with a simple for loop like so...
I am trying to delete the lines that contain the values of my array in the text file test2 with sed. I've tried squeezing multiple ways of writing $k between the brackets but for some reason test2 is never edited.
Hi all can you please help me what is dead.letter file ?
when it is created ? for the first time i have seen this file getting created in my current directory?
I am using SunOs.
Any IDEA ?? (2 Replies)
We are still using solaris 1 with sunos 4.1.4 because nobody here knows Unix.
My colleague did a backup (dump) to the wrong place (/dev/sd0h) and we lost this part of the drive. The information is still on tape but we cannot repartition the /dev/sd0h. fsck keeps on about the "wrong SUPER BLOCK"... (2 Replies)
If Edison and Ford were the the greatest inventors and influencers of the turn of the 20th century... then surely Jack Kilby was probably the most influential person of the late 21st century and for time immemorial...on our way of life.
A legend dies (7 Replies)
HI,
I am pretty new to Unix...but here is 1 serious problem...atleast for me..:-)
now..the dead.letter file in /var/tmp has been growin continuously..n i dont know why..I ve even killed the sendmail process..but the dead.letter file keeps on increasin..Can anyone tell me where do I start... (6 Replies)
My SUN V210 refuses to fully boot up. We had a power outage (ie. someone tripped the cord) and thereafter the Sun will not come up, and the OS is not starting. The LED on the front is not lit.
Monitor gets no feed, so I plugged in via the management port.
The system comes up to:
Trap 3e. and... (7 Replies)