Re: Renaming files

2013-01-10 Thread Tim Daneliuk
Have a look at Http://www.tundraware.com/Software/tren - Tim Daneliuk Odhiambo Washington wrote: >I have several files in this format: > >rw-r--r-- 1 johndoe johndoe20085 Jan 9 19:30 1357744249.26989.mbox:2, >-rw-r--r-- 1 johndoe johndoe24419 Jan 9 19:30 >1357744250.26989.mb

Re: Renaming files

2013-01-09 Thread Devin Teske
On Jan 9, 2013, at 9:29 PM, Odhiambo Washington wrote: > I have several files in this format: > > rw-r--r-- 1 johndoe johndoe20085 Jan 9 19:30 1357744249.26989.mbox:2, > -rw-r--r-- 1 johndoe johndoe24419 Jan 9 19:30 > 1357744250.26989.mbox:2, > -rw-r--r-- 1 johndoe johndoe 4

Renaming files

2013-01-09 Thread Odhiambo Washington
I have several files in this format: rw-r--r-- 1 johndoe johndoe20085 Jan 9 19:30 1357744249.26989.mbox:2, -rw-r--r-- 1 johndoe johndoe24419 Jan 9 19:30 1357744250.26989.mbox:2, -rw-r--r-- 1 johndoe johndoe 418 Jan 9 19:30 1357744251.26989.mbox:2, -rw-r--r-- 1 johndoe johnd

Re: Exact timestamp for sorting and renaming files according to creation order

2012-01-04 Thread Polytropon
Tuesday, January 03, 2012 1:00 PM > > > To: Dan Nelson > > > Cc: FreeBSD Questions > > > Subject: Re: Exact timestamp for sorting and renaming files according to > > creation > > > order > > > > > > On Tue, 3 Jan 2012 14:49:02

Re: Exact timestamp for sorting and renaming files according to creation order

2012-01-04 Thread Julian H. Stacey
ons > > Subject: Re: Exact timestamp for sorting and renaming files according to > creation > > order > > > > On Tue, 3 Jan 2012 14:49:02 -0600, Dan Nelson wrote: > > > If you ask for the date to be printed in "float" (F) format, it gives > >

Re: Exact timestamp for sorting and renaming files according to creation order

2012-01-03 Thread Dan Nelson
In the last episode (Jan 03), Polytropon said: > On Tue, 3 Jan 2012 14:49:02 -0600, Dan Nelson wrote: > > If you ask for the date to be printed in "float" (F) format, it gives > > more precision. The default is unsigned int (U) format. > > > > % stat -f "%N %FB" /COPYRIGHT > > /COPYRIGHT 1306190

RE: Exact timestamp for sorting and renaming files according to creation order

2012-01-03 Thread Devin Teske
> -Original Message- > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- > questi...@freebsd.org] On Behalf Of Polytropon > Sent: Tuesday, January 03, 2012 1:00 PM > To: Dan Nelson > Cc: FreeBSD Questions > Subject: Re: Exact timestamp for sorti

Re: Exact timestamp for sorting and renaming files according to creation order

2012-01-03 Thread Polytropon
On Tue, 3 Jan 2012 14:49:02 -0600, Dan Nelson wrote: > If you ask for the date to be printed in "float" (F) format, it gives more > precision. The default is unsigned int (U) format. > > % stat -f "%N %FB" /COPYRIGHT > /COPYRIGHT 1306190895.046721049 Strangely, I only get a 0 "suffix" f

RE: Exact timestamp for sorting and renaming files according to creation order

2012-01-03 Thread Devin Teske
> -Original Message- > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- > questi...@freebsd.org] On Behalf Of Dan Nelson > Sent: Tuesday, January 03, 2012 12:49 PM > To: Polytropon > Cc: FreeBSD Questions > Subject: Re: Exact timestamp for sorti

Re: Exact timestamp for sorting and renaming files according to creation order

2012-01-03 Thread Dan Nelson
In the last episode (Jan 03), Polytropon said: > For a sorting script, I'm currently searching for a method to get file > creation date and time as exactly as possible. The best resolution I > could get was seconds. In case more than one file is created within the > same second, it doesn't work p

Exact timestamp for sorting and renaming files according to creation order

2012-01-03 Thread Polytropon
For a sorting script, I'm currently searching for a method to get file creation date and time as exactly as possible. The best resolution I could get was seconds. In case more than one file is created within the same second, it doesn't work precisely enough. It should work from sh script. For the

Re: Renaming files with strange characters in dired-mode [was: Re: control character file names]

2008-12-15 Thread Noah
what the *real* filename is, and may trigger this sort of error. thanks I placed that setq option in my .emacs and that works for renaming files and directories containing control character. I am unable to rename a directory that has nine '?'. What setq modification will allow emacs to ch

Renaming files with strange characters in dired-mode [was: Re: control character file names]

2008-12-15 Thread Giorgos Keramidas
confuse dired about what the *real* >> filename is, and may trigger this sort of error. > > thanks I placed that setq option in my .emacs and that works for > renaming files and directories containing control character. I am > unable to rename a directory that has nine '?&#x

Re: Renaming files in one shot

2007-01-26 Thread Dhénin Jean-Jacques
# more ~/bin/renomme NUM=$1 shift NOUVEAU=`echo $* | sed 's/ /_/g' ` find . -inum $NUM -exec ln {} $NOUVEAU \; 2007/1/26, Vittorio <[EMAIL PROTECTED]>: Under a directory I have many pdf files named according to M$ Windows rules, that is: Marylin Monroe.pdf James Stewart.pdf Alice in Wonderlan

Re: Renaming files in one shot

2007-01-26 Thread Matthias Apitz
El día Friday, January 26, 2007 a las 02:36:03PM +0100, Vittorio escribió: > Under a directory I have many pdf files named according to M$ Windows > rules, that is: > > Marylin Monroe.pdf > James Stewart.pdf > Alice in > Wonderland.pdf > Ludwig Van Beethoven.pdf > . > . > > Now I'd lik

Renaming files in one shot

2007-01-26 Thread Vittorio
Under a directory I have many pdf files named according to M$ Windows rules, that is: Marylin Monroe.pdf James Stewart.pdf Alice in Wonderland.pdf Ludwig Van Beethoven.pdf . . Now I'd like to rename them ** IN ONE SHOT ** (some more steps would be acceptable anyway!) deleting all the

Re: Renaming files using find

2004-08-31 Thread Gerard Samuel
Giorgos Keramidas wrote: On 2004-08-31 11:15, Gerard Samuel <[EMAIL PROTECTED]> wrote: Im trying to rename a few files with the .dist extension. Im trying -> hivemind# find . -name '*.dist' -exec cp {} `basename {} .dist` \; And Im getting -> cp: ./html.php.dist and ./html.php.dist are identical (n

Re: Renaming files using find

2004-08-31 Thread Giorgos Keramidas
On 2004-08-31 11:15, Gerard Samuel <[EMAIL PROTECTED]> wrote: > > Im trying to rename a few files with the .dist extension. > Im trying -> > hivemind# find . -name '*.dist' -exec cp {} `basename {} .dist` \; > > And Im getting -> > cp: ./html.php.dist and ./html.php.dist are identical (not copied).

Renaming files using find

2004-08-31 Thread Gerard Samuel
Im trying to rename a few files with the .dist extension. Im trying -> hivemind# find . -name '*.dist' -exec cp {} `basename {} .dist` \; And Im getting -> cp: ./html.php.dist and ./html.php.dist are identical (not copied). cp: ./horde.php.dist and ./horde.php.dist are identical (not copied). cp: .

Re: Renaming files with spaces in the name to files withoutspaces..

2003-01-09 Thread Duncan Anker
On Fri, 2003-01-10 at 06:10, Stijn Hoop wrote: > On Thu, Jan 09, 2003 at 01:51:08PM -0500, parv wrote: > > in message <[EMAIL PROTECTED]>, > > wrote Stijn Hoop thusly... > > > > > > On Fri, Jan 10, 2003 at 01:49:18AM +1030, Rob wrote: > > > > > If you want to do it for all files in a directory: > >

Re: Renaming files with spaces in the name to files without spaces..

2003-01-09 Thread parv
in message <[EMAIL PROTECTED]>, wrote Stijn Hoop thusly... > > On Fri, Jan 10, 2003 at 01:49:18AM +1030, Rob wrote: > > > If you want to do it for all files in a directory: > > > > > > # for file in *; do mv "$file" `echo $file | sed -e 's/ /_/g'`; done ^

Re: Renaming files with spaces in the name to files without spaces..

2003-01-09 Thread Unix Tools
Conider the file "freebsd help.doc" mv freebsd\ help.doc freebsdhelp.doc - Original Message - From: "Gary W. Swearingen" <[EMAIL PROTECTED]> To: "BigBrother (BigB3)" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 08

Re: Renaming files with spaces in the name to files without spaces..

2003-01-09 Thread Stijn Hoop
On Fri, Jan 10, 2003 at 01:49:18AM +1030, Rob wrote: > > If you want to do it for all files in a directory: > > > > # for file in *; do mv "$file" `echo $file | sed -e 's/ /_/g'`; done > > > > should do the trick. I think Perl is overkill for something this simple. > > Someone else suggested tr, wh

Re: Renaming files with spaces in the name to files without spaces..

2003-01-09 Thread BigBrother (BigB3)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 10 Jan 2003, Rob wrote: > > > Sorry for this OT but I am trying for some hours to achieve a massive > > > rename of files using a simple script and I have not success yet. I want > > > to rename files like > > > > > > "RESULTS OF JAN 01 2002

Re: Renaming files with spaces in the name to files without spaces..

2003-01-09 Thread Rob
> > Sorry for this OT but I am trying for some hours to achieve a massive > > rename of files using a simple script and I have not success yet. I want > > to rename files like > > > > "RESULTS OF JAN 01 2002.txt " > > > > to > > > > "RESULTS_OF_JAN_01_2002.txt" > > > > i.e. all the spaces, being su

Re: Renaming files with spaces in the name to files withoutspaces..

2003-01-08 Thread Duncan Anker
On Thu, 2003-01-09 at 02:01, BigBrother (BigB3) wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Sorry for this OT but I am trying for some hours to achieve a massive > rename of files using a simple script and I have not success yet. I want > to rename files like > > "RESULTS OF J

Re: Renaming files with spaces in the name to files without spaces..

2003-01-08 Thread Chris Doherty
On Wed, Jan 08, 2003 at 06:01:50PM +0200, BigBrother (BigB3) said: > -BEGIN PGP SIGNED MESSAGE- > Sorry for this OT but I am trying for some hours to achieve a massive > rename of files using a simple script and I have not success yet. I want > to rename files like there is already a gene

Re: Renaming files with spaces in the name to files without spaces..

2003-01-08 Thread parv
in message <[EMAIL PROTECTED]>, wrote BigBrother (BigB3) thusly... > > Sorry for this OT but I am trying for some hours to achieve > a massive rename of files using a simple script and I have not > success yet. I want to rename files like > > "RESULTS OF JAN 01 2002.txt " > > to > > "RESULTS_OF_

Re: Renaming files with spaces in the name to files without spaces..

2003-01-08 Thread Paul Everlund
On Wed, 8 Jan 2003, BigBrother (BigB3) wrote: > Sorry for this OT but I am trying for some hours to achieve a massive > rename of files using a simple script and I have not success yet. I want > to rename files like > > "RESULTS OF JAN 01 2002.txt " > > to > > "RESULTS_OF_JAN_01_2002.txt" > > i.e.

Re: Renaming files with spaces in the name to files without spaces..

2003-01-08 Thread Gary W. Swearingen
Paste this into your shell: XXX="RESULTS OF JAN 01 2002.txt " YYY=${XXX%% } ZZZ=$(echo ${YYY} | tr ' ' '_') for III in "$XXX" "$YYY" "$ZZZ"; do echo "'$III'" done To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message

Re: Renaming files with spaces in the name to files withoutspaces..

2003-01-08 Thread Ian Watkinson
On Wed, 2003-01-08 at 16:01, BigBrother (BigB3) wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Sorry for this OT but I am trying for some hours to achieve a massive > rename of files using a simple script and I have not success yet. I want > to rename files like > > "RESULTS OF J

RE: Renaming files with spaces in the name to files without spaces..

2003-01-08 Thread Yonatan Bokovza
> -Original Message- > From: BigBrother (BigB3) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 08, 2003 18:02 > To: [EMAIL PROTECTED] > Subject: Renaming files with spaces in the name to files > without spaces.. > > > -BEGIN PGP SIGNED MESSAGE-

Renaming files with spaces in the name to files without spaces..

2003-01-08 Thread BigBrother (BigB3)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry for this OT but I am trying for some hours to achieve a massive rename of files using a simple script and I have not success yet. I want to rename files like "RESULTS OF JAN 01 2002.txt " to "RESULTS_OF_JAN_01_2002.txt" i.e. all the spaces,