Re: would you give me a hand with a simple 'if' bash script?

2008-03-13 Thread Jan Schampera
hawa wrote: > Execuse me, would you give me a hand with a simple 'if' bash script? > I want to make folders "00", "01",...,"20" and > copy existing files file_00, file_01,,file_20 to each folder. > Thank you very much. > > > > - > for (( i = 1 ; i <= 20;

Re: would you give me a hand with a simple 'if' bash script?

2008-03-13 Thread Bob Proulx
hawa wrote: > Execuse me, would you give me a hand with a simple 'if' bash script? > I want to make folders "00", "01",...,"20" and > copy existing files file_00, file_01,,file_20 to each folder. Something like this (UNTESTED): for n in $(seq -w 0 20); do mkdir $n mv file_$n $n/ d

would you give me a hand with a simple 'if' bash script?

2008-03-13 Thread hawa
Execuse me, would you give me a hand with a simple 'if' bash script? I want to make folders "00", "01",...,"20" and copy existing files file_00, file_01,,file_20 to each folder. Thank you very much. - for (( i = 1 ; i <= 20; i++ )) do if [ $i -gt 10

Re: bash keeps too much data in memory

2008-03-13 Thread Wojciech Puchar
works fine! , but patch didn't (1 hunk of 3 failed). i patched it manually (bash-3.2.tar.gz with all patches from ftp.gnu.org) and compiled. bug is fixed. thanks the working patch below. if you'll put this patch on ftp or not, both please tell me and the name, i will add the fix to FreeBSD

Re: bash keeps too much data in memory

2008-03-13 Thread Andreas Schwab
Wojciech Puchar <[EMAIL PROTECTED]> writes: > Description: > bash sometimes keeps in memory everything it outputs with echo. > > Repeat-By: > create BIG text file, lots of lines, at least 100MB > do > while read ll;do echo $RANDOM $RANDOM $ll;done outfile > then from

bash keeps too much data in memory

2008-03-13 Thread Wojciech Puchar
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: freebsd6.2 Compiler: cc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='freebsd6.2' -DCONF_MACHTYPE='i386-portbld-freebsd6.2' -DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/loc