Re: copy file



I think it is just like the linux 'mv' command! You can see at man rename:
----------------------------------------------------------------------------------
DESCRIPTION
       "rename" renames the filenames supplied according to the rule
specified as the first argu-
       ment.  The perlexpr argument is a Perl expression which is
expected to modify the $_ string
       in Perl for at least some of the filenames specified.  If a
given filename is not modified
       by the expression, it will not be renamed.  If no filenames are
given on the command line,
       filenames will be read via standard input.

       For example, to rename all files matching "*.bak" to strip the
extension, you might say

               rename 's/\.bak$//' *.bak

       To translate uppercase names to lower, you'd use

               rename 'y/A-Z/a-z/' *
---------------------------------------------------------------------------------------
So, it doesn't work if it creates new files, cause this last example!
Linux is case sensitive and two files with the "same" name would be
created using this command line! "rename 'y/A-Z/a-z/' *"


On Fri, 04 Mar 2005 15:55:09 +0000, [ A b h i s h e k ]
<septembereleven hotmail com> wrote:
hey

This regarding the copy file.
Does the rename function replace the old file with a new name or does it
create a completely new file with the new name??
Thanks.

From: André Pedralho <apedralho gmail com>
Reply-To: André Pedralho <apedralho gmail com>
To: gtk-app-devel-list gnome org
Subject: Re: copy file
Date: Thu, 3 Mar 2005 23:18:02 -0400

There are a lot of File utilities functions in GLib! You may use the
rename() function to do it!
http://developer.gnome.org/doc/API/2.0/glib/glib-File-Utilities.html#g-rename
look at here for solving your problems!

any doubts, I´m here!


On Fri, 04 Mar 2005 00:47:57 +0100, ALLs soft <info alls org> wrote:
can I copy file with GTK+ and how?

thanks.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.3 - Release Date: 1.3.2005

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_________________________________________________________________
The MSN Survey!
http://www.cross-tab.com/surveys/run/test.asp?sid=2026&respid=1 Help us help
you better!





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]