Re: deleting coma in a large number of files

2007-07-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Timothee on 7/20/2007 12:22 PM: > Hello, > as said in the title, I have suppress all comas in a lot of text files > located in the same directory, all having the same name but with a different > number at the end (year1, year2, year3, ...)

Re: Subnet address

2007-07-21 Thread Mike Frysinger
On Saturday 21 July 2007, Archimerged Ark Submedes decided to be rude: > On 7/20/07, Mike Frysinger <[EMAIL PROTECTED]> did not read the question. > > The answer is: funny, you just backed up my statement completely. there is no utility that'll give you the subnet address straight, you'll need t

Re: deleting coma in a large number of files

2007-07-21 Thread Bob Proulx
Timothee wrote: > as said in the title, I have suppress all comas in a lot of text files > located in the same directory, all having the same name but with a different > number at the end (year1, year2, year3, ...). > > I'm sure this can be done very rapidly in bash but have no idea of how to > wr

deleting coma in a large number of files

2007-07-21 Thread Timothee
Hello, as said in the title, I have suppress all comas in a lot of text files located in the same directory, all having the same name but with a different number at the end (year1, year2, year3, ...). I'm sure this can be done very rapidly in bash but have no idea of how to write it! Thanks if y

Re: Subnet address

2007-07-21 Thread Dave Rutherford
On 7/21/07, Archimerged Ark Submedes <[EMAIL PROTECTED]> wrote: On 7/20/07, Mike Frysinger <[EMAIL PROTECTED]> did not read the question. Neither did you. ;-) Asked for was a solution using ifconfig and bash; you added grep and tr. Yes, that's entirely reasonable on your part, but it's not n

Re: bug in printf bash command

2007-07-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to James Youngman on 7/21/2007 8:25 AM: [thread starts at http://lists.gnu.org/archive/html/bug-coreutils/2007-07/msg00060.html] >>> [EMAIL PROTECTED] "%02i" 09 >>> -bash: printf: 09: invalid number >> >> printf "%02i" 011 >> >> gets you 09.

Re: Subnet address

2007-07-21 Thread Archimerged Ark Submedes
On 7/20/07, Mike Frysinger <[EMAIL PROTECTED]> did not read the question. The answer is: /sbin/ifconfig eth0 | grep 'inet addr' | tr .: ' ' | (read inet addr a b c d Bcast e f g h Mask i j k l; echo $(($a & $i)).$(($b & $j )).$(( $c & $k )).$(( $d & $l )) ) ___

Re: ctrl+r + left cursor + multiline PS1 = wrong cursor displaying

2007-07-21 Thread Benno Schulenberg
Xuefer wrote: > Bash Version: 3.2 > Patch Level: 15 > > expected: cursor moves in the range of "echo abc", and the[n] beyond "c" > actually: cursor moves in the range of "$ echo ab" (including b) Please try again with patch level 17. With bash-3.2.17 I cannot reproduce that behaviour here. > Re

Re: subshell vs. su and +e

2007-07-21 Thread Andreas Schwab
"BuraphaLinux Server" <[EMAIL PROTECTED]> writes: > su -p nobody -s /sbin/bash << EOF > export HOME=/tmp > # turn off error crashing and turn on tracing > set +e -x > # begin the non-root stuff here > cd /tmp/mindy > shazbot is not a valid command > if ((${?}!=0)) # <--- ${?} is zero here not 12