Re: some problem in scripting.

2007-06-20 Thread Michelle Konzack
Am 2007-06-13 13:58:18, schrieb L.V.Gandhi: > I am using this script to find high/low > #!/bin/bash > rm -f highs > rm -f lows > touch lows > for line in $(cat temp.csv) Replacement: for line in $(cat temp.csv |dos2unix) > I get highs file. I don't get lows file. I feel there is some unprintabl

Re: some problem in scripting.

2007-06-14 Thread L . V . Gandhi
On 6/14/07, William Pursell <[EMAIL PROTECTED]> wrote: L.V.Gandhi wrote: > I created a .csv file in this format from a original file from the net. > The last field here is the last field in original file also. I made this > file as original file has empty lines and single field lines also. > SYM

Re: some problem in scripting.

2007-06-14 Thread William Pursell
L.V.Gandhi wrote: I created a .csv file in this format from a original file from the net. The last field here is the last field in original file also. I made this file as original file has empty lines and single field lines also. SYMBOL,HIGH_PRICE,LOW_PRICE,HI_52_WK,LO_52_WK BHARTIARTL,809.00,7

Re: some problem in scripting

2007-06-14 Thread L . V . Gandhi
On 6/13/07, Mike McClain <[EMAIL PROTECTED]> wrote: On 13 Jun 2007, L.V.Gandhi wrote: >I added one more field and found that ^M in the LO_52_WK field before comma. >I tried sed -e 's/M$//'. this didn't help. >Any solutions? What you see as ^M is the carriage return, CR = \015 = \0x0d = "\r". Loo

re: some problem in scripting

2007-06-13 Thread Mike McClain
On 13 Jun 2007, L.V.Gandhi wrote: >I added one more field and found that ^M in the LO_52_WK field before comma. >I tried sed -e 's/M$//'. this didn't help. >Any solutions? What you see as ^M is the carriage return, CR = \015 = \0x0d = "\r". Look for fromdos or roll your own with `tr -d "\015"`. HTH

Re: some problem in scripting.

2007-06-13 Thread L . V . Gandhi
On 6/13/07, Alex Samad <[EMAIL PROTECTED]> wrote: On Wed, Jun 13, 2007 at 01:58:18PM -0700, L.V.Gandhi wrote: > I created a .csv file in this format from a original file from the net. The > last field here is the last field in original file also. I made this file as > original file has empty lin

Re: some problem in scripting.

2007-06-13 Thread Alex Samad
On Wed, Jun 13, 2007 at 01:58:18PM -0700, L.V.Gandhi wrote: > I created a .csv file in this format from a original file from the net. The > last field here is the last field in original file also. I made this file as > original file has empty lines and single field lines also. > SYMBOL,HIGH_PRICE,L

Re: some problem in scripting.

2007-06-13 Thread Alex Samad
On Wed, Jun 13, 2007 at 01:58:18PM -0700, L.V.Gandhi wrote: > I created a .csv file in this format from a original file from the net. The > last field here is the last field in original file also. I made this file as > original file has empty lines and single field lines also. > SYMBOL,HIGH_PRICE,L