Results 1 to 2 of 2

Thread: Rename multiple files in UNIX

  1. #1
    Contributors sweta's Avatar
    Join Date
    Feb 2005
    Location
    New Delhi
    Posts
    225
    Thanks
    20
    Thanked 12 Times in 12 Posts
    Rep Power
    12

    Default Rename multiple files in UNIX

    Use rename command which is a quick and powerful tool written in C, featuring extended regular expression support for searching and substituting pattern strings in filenames. Rename can rename, convert to lowercase/uppercase, and change the ownership of a large number of files.

    Rename all *.c file as *.cpp:
    Code:
    rename .c .cpp *.c
    Rename command is included with all Linux distro, under UNIX / FreeBSD, use ports:
    Code:
    cd /usr/ports/sysutils/rename
    make install clean
    See man page:
    Code:
    man rename
    Howto Linux rename multiple files at a shell prompt

  2. #2
    Junior Member
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Thanks that helps me a lot

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. script to rm files on multiple servers
    By steve_f60 in forum Shell scripting
    Replies: 1
    Last Post: 21st June 2008, 10:29 PM
  2. UNIX Display or list number of files in a current directory
    By raj in forum Getting started tutorials
    Replies: 1
    Last Post: 7th December 2007, 10:55 AM
  3. Replies: 0
    Last Post: 5th June 2007, 03:03 AM
  4. shell script that parses multiple log files and checks for a
    By Anonymous in forum Shell scripting
    Replies: 1
    Last Post: 15th November 2006, 09:38 PM
  5. UNIX ls only directories (display only dirs and no files)
    By chiku in forum Solaris/OpenSolaris
    Replies: 1
    Last Post: 21st October 2006, 12:27 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •