-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, ...)
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
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
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
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
-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.
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 )) )
___
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
"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