Results 1 to 2 of 2

Thread: Rename multiple files in UNIX

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

    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:
    rename .c .cpp *.c
    Rename command is included with all Linux distro, under UNIX / FreeBSD, use ports:
    cd /usr/ports/sysutils/rename
    make install clean
    See man page:
    man rename
    Howto Linux rename multiple files at a shell prompt

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


    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, 11: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, 11:55 AM
  3. Replies: 0
    Last Post: 5th June 2007, 04: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, 10: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, 01: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