nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

rename files

This is a discussion on rename files within the Shell scripting forums, part of the Development/Scripting category; Help to cope with the problem. I need to create a program that can be called - to rename the ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-05-2009, 11:35 PM
Junior Member
User
 
Join Date: Apr 2009
OS: SUSE 11.0
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lliriK is on a distinguished road
Exclamation rename files

Help to cope with the problem. I need to create a program that can be called - to rename the files located in certain ways. Input arguments:
1. reference catalogs, which must be renamed.
2. where to dump logs (default is standard output, and if specified, the file)
3. flag, which indicates to copy or rename a file
4. must file with the settings change, indicating the expansion of a rename and in which (for example: rename *. txt to 1.html).
Reply With Quote
  #2 (permalink)  
Old 13-05-2009, 12:55 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

No need to write a shell script. Simply use rename command:
Howto Linux rename multiple files at a shell prompt
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
rename files. knvpavan Shell scripting 2 27-12-2008 08:38 PM
Rename multiple files in UNIX sweta Getting started tutorials 1 26-10-2008 10:44 AM
How to rename a file in Linux raj Linux software 0 22-04-2008 02:00 AM
how to rename eth0 to eth1 deltamails Networking, Firewalls and Security 1 24-09-2007 07:53 PM
How can I rename a file by its date? warren Linux software 5 30-03-2006 12:11 PM


All times are GMT +5.5. The time now is 05:19 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38