Joined: 04 May 2005 Posts: 9844 Location: Arizona USA
Posted: Sat 17 Mar 2012, 23:01 Post subject:
I took it for a spin, renumbering the 79 mp3 files in an audio book directory. As you can see, the added numbers are not in the correct order. The files were originally numbered in order of their creation.
Posted: Tue 20 Mar 2012, 12:53 Post subject:
ls command
I'll have to check more carefully. Here's what the internet says:
Code:
6. Order Files Based on Last Modified Time Using ls -lt
To sort the file names displayed in the order of last modification time use the -t option. You will be finding it handy to use it in combination with -l option.
$ ls -lt
total 76
drwxrwxrwt 14 root root 4096 Jun 22 07:36 tmp
drwxr-xr-x 121 root root 4096 Jun 22 07:05 etc
drwxr-xr-x 13 root root 13780 Jun 22 07:04 dev
drwxr-xr-x 13 root root 4096 Jun 20 23:12 root
drwxr-xr-x 12 root root 4096 Jun 18 08:31 home
drwxr-xr-x 2 root root 4096 May 17 21:21 sbin
lrwxrwxrwx 1 root root 11 May 17 20:29 cdrom -> media/cdrom
drwx------ 2 root root 16384 May 17 20:29 lost+found
drwxr-xr-x 15 root root 4096 Jul 2 2008 var
but I also used 'touch -a' which may have changed the date of
the original file????
To see how this app works in a full fledged utility program
go to Rename-files
I upgraded this app to make it run on all puppies.
I found that it would only work on Lucid Puppy because
of the limitations on the mv command.
It turns out that mv -n (non-clobber) requires a more recent
version of mv.
No file can be over written by this program
so it is safe for use.
Instructions : Just type in terminal program
Code:
number-files /some/folder/
The files inside the folder will be numbered safely.
Any folders inside the folder will remain untouched.
A final slash / is optional, but a path is necessary.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum