Re: print float number

2014-01-08 Thread lina
On Wednesday 08,January,2014 01:36 PM, Bob Proulx wrote: > Hi lina, > > lina wrote: >> How can I print the 0.05, 0.10 ... 1.0 out, with the step of 0.05 >> >> Thanks ahead for your suggestions, > > First please do not hijack threads. You replied to Chris Down&

print float number

2014-01-07 Thread lina
Hi, How can I print the 0.05, 0.10 ... 1.0 out, with the step of 0.05 Thanks ahead for your suggestions,

Re: Bash crashes with trapped SIGCHLD and read -t.

2013-01-24 Thread lina
On Friday 25,January,2013 12:28 AM, Chet Ramey wrote: > On 1/24/13 8:35 AM, konsolebox wrote: >> Hi. Is there a way to prevent this segmentation fault in Bash? I'm not sure >> where the fault happens but when there's a function that handles a trap and >> when a signal is caught during a session of

Re: sed problem

2012-04-02 Thread lina
On Sat, Aug 13, 2011 at 11:14 PM, Francky Leyn wrote: > Hello, > > I have the following problem: I must write a sed script that > converts parts of groff syntax to LaTeX syntax. > > eg: .BI -o gif_output_file -> \textbf{-o} \textit{gif\_output\_file} > > Lets neglect the underscores for the moment

Re: How to enable infinite command history

2012-02-01 Thread lina
You mean the bash history fliter, can flit away those repeated more than twice and those cd .. and something basic.

how to understand echo ${PATH#*:}

2011-12-25 Thread lina
Hi, how to understand echo ${PATH#*:} the #*: I don't get it. why the first path before : was gone. Thanks,

Re: how to extract an array and sorted by the array

2011-09-06 Thread lina
C4 18 C5 19 C6 20 C7 21 C8 22 C9 23 C10 24 O3 25 C11 26 C12 27 O4 28 C13 29 C14 30 C15 31 C20 32 C19 33 C18 34 C17 35 C16 36 O5 37 C21 38 O6 39 H62 40 O2 41 H22 I wish the fied 2 from file 2 arranged the same sequence as the field 2 of file 1. Thanks On Wed, Sep 7, 2011 at 12:38 PM, lina wrote

how to extract an array and sorted by the array

2011-09-06 Thread lina
Hi, How can I extract the array (a b c) out from file 1 10 a 11 b 12 c and sort the file 2: which b whyc what a into the form of what a which b why c -- Best Regards, lina

Re: how to enable thread

2011-08-04 Thread lina
On Thu, Aug 4, 2011 at 11:20 PM, Steven W. Orr wrote: > On 8/4/2011 9:51 AM, lina wrote: >> >> Actually I got a bash script which contains several process (jobs) >> >> The waiting time is so long, I mean, run one by one, >> >> I can submit one by one separa

Re: how to enable thread

2011-08-04 Thread lina
a million loops each in background, you should see > all your cores busy then...   if a million loops exit too quickly make the > 6 a 7, (i.e. 10 million loops...etc)... > > If they still don't run in parallel, > get 'sysinternals process explorer', and make sure i

how to enable thread

2011-08-04 Thread lina
Hi, I can see when I tried to make -j 8, my 8 cores can be fully occupied. I wrote a short bash script to run something, but only one core was used. are there some simple way to enable thread in my bash script. Thanks, -- Best Regards, lina