Re: Dumb little utilities

2002-09-04 Thread Clint Adams
rename 's/\.c$/.x/' cumbersome? Come on. s///? Backslash? $? Not one, but two single quotes? One may as well type for i in *.c ; mv $i ${i/.c(#e)/.x} or for i (*.c) { mv $i ${i%c}x } I really would rather type ren *.c *.x. But then, I don't think in perl.

Re: Dumb little utilities

2002-09-04 Thread J. Scott Edwards
On 3 Sep 2002, Goswin Brederlow wrote: J. Scott Edwards [EMAIL PROTECTED] writes: On Wed Aug 28 11:37:29 2002 Allan Wind wrote: On 2002-08-27 21:59:28, J. Scott Edwards wrote: file slicer (that can slice up a file into different size chunks). dd? Yea, that would do it,

Re: Dumb little utilities

2002-09-04 Thread Marcus Brinkmann
On Wed, Aug 28, 2002 at 08:19:54AM +0200, Ola Lundqvist wrote: little endian hex dump May be interesting. Should be an option to od, really. Thanks, Marcus -- `Rhubarb is no Egyptian god.' GNU http://www.gnu.org[EMAIL PROTECTED] Marcus Brinkmann The Hurd

Re: Dumb little utilities

2002-09-04 Thread J. Scott Edwards
On Tue, 3 Sep 2002, Malcolm Parsons wrote: On Tue, Sep 03, 2002 at 01:07:28PM -0600, J. Scott Edwards wrote: On Wed, 28 Aug 2002 Marcelo E. Magallon wrote: Ola Lundqvist [EMAIL PROTECTED] writes: tab and untab (I just discovered that this can be done with pr). If it

Re: Dumb little utilities

2002-09-04 Thread J. Scott Edwards
I had no idea all of these existed (I have heard of zsh). Is there anyway of finding these things out? Apropos won't work if you don't have them installed? Thanks -Scott On Tue, 3 Sep 2002, Clint Adams wrote: And if you use zsh, you don't need to bother with mmv or rename, since there's

Re: Dumb little utilities

2002-09-03 Thread J. Scott Edwards
On Wed Aug 28 11:37:29 2002 Allan Wind wrote: On 2002-08-27 21:59:28, J. Scott Edwards wrote: tab and untab (I just discovered that this can be done with pr). tr I'm not the brightest bulb in the box, so perhaps it's just me, but tr seems kind of a complicated way to do this. I don't

Re: Dumb little utilities

2002-09-03 Thread J. Scott Edwards
On Wed, 28 Aug 2002 Marcelo E. Magallon wrote: Ola Lundqvist [EMAIL PROTECTED] writes: tab and untab (I just discovered that this can be done with pr). If it can be done with something else it might not be too necessary. It is your choice though. JFYI, it can also be done with

Re: Dumb little utilities

2002-09-03 Thread J. Scott Edwards
On Wed, 28 Aug 2002 Romain Lerallut wrote: Thus spake J. Scott Edwards on Tue, Aug 27, 2002 at 09:59:28PM -0600: file renamer (that can change case). Just asking: anything that mmv can't do ? (I guess that you meant 'mv'?) Anyway, it's similar to the 'rename' command that someone else

Re: Dumb little utilities

2002-09-03 Thread Colin Watson
On Tue, Sep 03, 2002 at 01:02:20PM -0600, J. Scott Edwards wrote: On Wed, 28 Aug 2002 Romain Lerallut wrote: Thus spake J. Scott Edwards on Tue, Aug 27, 2002 at 09:59:28PM -0600: file renamer (that can change case). Just asking: anything that mmv can't do ? (I guess that you meant

Re: Dumb little utilities

2002-09-03 Thread J. Scott Edwards
On Tue, 3 Sep 2002, I wrote: On Wed, 28 Aug 2002 Romain Lerallut wrote: Thus spake J. Scott Edwards on Tue, Aug 27, 2002 at 09:59:28PM -0600: file renamer (that can change case). Just asking: anything that mmv can't do ? (I guess that you meant 'mv'?) I feel appropriately

Re: Dumb little utilities

2002-09-03 Thread Goswin Brederlow
J. Scott Edwards [EMAIL PROTECTED] writes: On Wed Aug 28 11:37:29 2002 Allan Wind wrote: On 2002-08-27 21:59:28, J. Scott Edwards wrote: file slicer (that can slice up a file into different size chunks). dd? Yea, that would do it, slightly more cumbersome to use. split ? MfG

Re: Dumb little utilities

2002-09-03 Thread Malcolm Parsons
On Tue, Sep 03, 2002 at 01:07:28PM -0600, J. Scott Edwards wrote: On Wed, 28 Aug 2002 Marcelo E. Magallon wrote: Ola Lundqvist [EMAIL PROTECTED] writes: tab and untab (I just discovered that this can be done with pr). If it can be done with something else it might not be too

Re: Dumb little utilities

2002-09-03 Thread Clint Adams
And if you use zsh, you don't need to bother with mmv or rename, since there's zmv. Anyway, it's similar to the 'rename' command that someone else mentioned. It renames multiple files like converting all the files in a directory from upper to lower case mmv \* \#l1 zmv '(*)' '${(L)1}'

Re: Dumb little utilities

2002-09-03 Thread Joey Hess
Clint Adams wrote: alias ren='noglob zmv -W' ren *.c *.x Ok, I love zsh and all, but: RUN AWAY!! I find the last preferable to the more cumbersome syntaxes of rename and mmv. rename 's/\.c$/.x/' cumbersome? -- see shy jo, suffering 4dos flashbacks (see my .zshrc) pgpl43ZOy1ZMN.pgp

Re: Dumb little utilities

2002-08-28 Thread Ola Lundqvist
On Tue, Aug 27, 2002 at 09:59:28PM -0600, J. Scott Edwards wrote: I guess I was worried that they are so trivial that any of the real programmers on this list could recreate them in 5 minutes with sed, awk, and perl. :) But, well ok: little endian hex dump May be interesting. tab and

Re: Dumb little utilities

2002-08-28 Thread Tollef Fog Heen
* J. Scott Edwards | file renamer (that can change case). what's wrong with rename(1)? -- Tollef Fog Heen,''`. UNIX is user friendly, it's just picky about who its friends are : :' :

Re: Dumb little utilities

2002-08-28 Thread Romain Lerallut
Thus spake J. Scott Edwards on Tue, Aug 27, 2002 at 09:59:28PM -0600: file renamer (that can change case). Just asking: anything that mmv can't do ? regards, Romain

Re: Dumb little utilities

2002-08-28 Thread Marcelo E. Magallon
Ola Lundqvist [EMAIL PROTECTED] writes: tab and untab (I just discovered that this can be done with pr). If it can be done with something else it might not be too necessary. It is your choice though. JFYI, it can also be done with expand. -- Marcelo | This signature was

Re: Dumb little utilities

2002-08-28 Thread Peter De Wachter
On Tue, Aug 27, 2002 at 09:59:28PM -0600, J. Scott Edwards wrote: convert wave -- raw audio files examine wave/raw audio files and print stats change amplitude of wave/raw audio files adjust lead in/lead out of wave/raw audio files Have you looked at sox? It does these things and a lot more,

Re: Dumb little utilities

2002-08-28 Thread Oohara Yuuma
On Tue, 27 Aug 2002 21:59:28 -0600 (MDT), J. Scott Edwards [EMAIL PROTECTED] wrote: little endian hex dump Can this tackle the length of int? find a file within a file Can you elaborate? Is it something like tar -x or munpack? duplicate file remover interesting file renamer (that can

Re: Dumb little utilities

2002-08-28 Thread Andreas Rottmann
Ola Lundqvist [EMAIL PROTECTED] writes: convert wave -- raw audio files examine wave/raw audio files and print stats change amplitude of wave/raw audio files adjust lead in/lead out of wave/raw audio files Could be packaged together too. Have a look at sox - do your programs have any

Re: Dumb little utilities

2002-08-28 Thread Mark Ferlatte
begin Oohara Yuuma quote on Wed, Aug 28, 2002 at 11:57:31PM +0900: generate id3 tags from file name (probably not generally useful). It may save some perl one-liner. id3ren does this. M pgp7m14E3fGi3.pgp Description: PGP signature

Dumb little utilities

2002-08-27 Thread J. Scott Edwards
Hello, I have a compiler (based upon SmallEiffel) and a bunch of dumb little utilites that I have been planning to make .deb files for. But I don't know if they have enough general appeal to make them official, or if I should just make them and put them on my SourceForge project pages. Does

Re: Dumb little utilities

2002-08-27 Thread Oliver Elphick
On Tue, 2002-08-27 at 17:11, J. Scott Edwards wrote: Hello, I have a compiler (based upon SmallEiffel) and a bunch of dumb little utilites that I have been planning to make .deb files for. But I don't know if they have enough general appeal to make them official, or if I should just make

Re: Dumb little utilities

2002-08-27 Thread J. Scott Edwards
I guess I was worried that they are so trivial that any of the real programmers on this list could recreate them in 5 minutes with sed, awk, and perl. :) But, well ok: little endian hex dump find a file within a file duplicate file remover tab and untab (I just discovered that this can be done