Re: how to match parenthesis in sed

2007-10-17 Thread Wakko Warner
H.S. wrote: > I think I have asked this before. Does thunar allow me to arrange the > files spatially (drag and drop) and then to rename them sequentially in > that order? I couldn't do this in Linux when I tried this earlier this > year. I think I tried thunar too at that time after a suggestion b

Re: how to match parenthesis in sed

2007-10-17 Thread H.S.
Mathias Brodala wrote: > Hi. > > H.S., 17.10.2007 18:09: >> Mathias Brodala wrote: >>> Hi. >>> >>> H.S., 17.10.2007 06:44: I am renaming files by removing parentheses from them. These are image files which were sorted in Windows (by placing them in the desired order and then by rena

Re: how to match parenthesis in sed

2007-10-17 Thread Mathias Brodala
Hi. H.S., 17.10.2007 18:09: > Mathias Brodala wrote: >> Hi. >> >> H.S., 17.10.2007 06:44: >>> I am renaming files by removing parentheses from them. These are image >>> files which were sorted in Windows (by placing them in the desired order >>> and then by renaming them in batch mode in Windows e

Re: how to match parenthesis in sed

2007-10-17 Thread H.S.
Mathias Brodala wrote: > Hi. > > H.S., 17.10.2007 06:44: >> I am renaming files by removing parentheses from them. These are image >> files which were sorted in Windows (by placing them in the desired order >> and then by renaming them in batch mode in Windows explorer -- couldn't >> do this in Li

Re: how to match parenthesis in sed

2007-10-17 Thread Owen Heisler
On Wed, 2007.10.17 15:33, Mathias Brodala wrote: > H.S., 17.10.2007 06:44: > > I am renaming files by removing parentheses from them. These are image > > files which were sorted in Windows (by placing them in the desired order > > and then by renaming them in batch mode in Windows explorer -- could

Re: how to match parenthesis in sed

2007-10-17 Thread Mathias Brodala
Hi. H.S., 17.10.2007 06:44: > I am renaming files by removing parentheses from them. These are image > files which were sorted in Windows (by placing them in the desired order > and then by renaming them in batch mode in Windows explorer -- couldn't > do this in Linux). Hint: use Thunar. It has a

Re: how to match parenthesis in sed

2007-10-17 Thread Mumia W..
On 10/17/2007 12:13 AM, H.S. wrote: [...] BTW, for some reason, the following does not work: $> for f in `find E/ -name "*.[Jj][Pp][Gg]"`; do echo "$f"; done The output of the above command has a new line before each parenthesis. You might need to change bash's internal field separator (IFS) f

Re: how to match parenthesis in sed

2007-10-17 Thread Mumia W..
On 10/17/2007 12:13 AM, H.S. wrote: [...] And here is the command that finds all my image files in directory E and renames them using the above script: $> find E/ -name "*.[Jj][Pp][Gg]" -exec ./delparen.sh "{}" \; BTW, for some reason, the following does not work: $> for f in `find E/ -name "

Re: how to match parenthesis in sed

2007-10-17 Thread Florian Kulzer
On Wed, Oct 17, 2007 at 00:44:55 -0400, H.S. wrote: > Hello, > > I am renaming files by removing parentheses from them. These are image > files which were sorted in Windows (by placing them in the desired order > and then by renaming them in batch mode in Windows explorer -- couldn't > do this in

Re: how to match parenthesis in sed

2007-10-16 Thread Kevin Mark
On Wed, Oct 17, 2007 at 01:17:40AM -0400, H.S. wrote: > H.S. wrote: > > H.S. wrote: > >> H.S. wrote: > >>> H.S. wrote: > Hello, > > I am renaming files by removing parentheses from them. These are image > Suggestion on how to do that? $ echo "20030113_Lohri_ (107).jpg" |sed "s/ (//

Re: how to match parenthesis in sed

2007-10-16 Thread H.S.
H.S. wrote: > H.S. wrote: >> H.S. wrote: >>> H.S. wrote: Hello, I am renaming files by removing parentheses from them. These are image files which were sorted in Windows (by placing them in the desired order and then by renaming them in batch mode in Windows explorer -- cou

Re: how to match parenthesis in sed

2007-10-16 Thread H.S.
H.S. wrote: > H.S. wrote: >> H.S. wrote: >>> Hello, >>> >>> I am renaming files by removing parentheses from them. These are image >>> files which were sorted in Windows (by placing them in the desired order >>> and then by renaming them in batch mode in Windows explorer -- couldn't >>> do this in

Re: how to match parenthesis in sed

2007-10-16 Thread H.S.
H.S. wrote: > H.S. wrote: >> Hello, >> >> I am renaming files by removing parentheses from them. These are image >> files which were sorted in Windows (by placing them in the desired order >> and then by renaming them in batch mode in Windows explorer -- couldn't >> do this in Linux). >> >> Here is

Re: how to match parenthesis in sed

2007-10-16 Thread H.S.
H.S. wrote: > Hello, > > I am renaming files by removing parentheses from them. These are image > files which were sorted in Windows (by placing them in the desired order > and then by renaming them in batch mode in Windows explorer -- couldn't > do this in Linux). > > Here is an example: > 20030

how to match parenthesis in sed

2007-10-16 Thread H.S.
Hello, I am renaming files by removing parentheses from them. These are image files which were sorted in Windows (by placing them in the desired order and then by renaming them in batch mode in Windows explorer -- couldn't do this in Linux). Here is an example: 20030113_Lohri_ (107).jpg -> is t