The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Accepting Upper and Lower case lweegp Shell Programming and Scripting 8 12-08-2007 06:57 PM
replacing all 4 first upper char of every rec to lowercase ? Browser_ice UNIX for Dummies Questions & Answers 2 08-02-2006 12:06 PM
How convert lowercase or uppercase Alex20 Shell Programming and Scripting 5 03-07-2005 07:07 AM
lower case to upper case string conversion in shell script dchalavadi UNIX for Dummies Questions & Answers 3 05-29-2002 12:07 AM
Upper And Lower Case pciatto Shell Programming and Scripting 1 04-29-2002 12:17 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-07-2005
Alex20 Alex20 is offline
Banned
  
 

Join Date: Mar 2005
Posts: 3
Unhappy after i convert upper case to lowercase

If user chosen to tolower then it should convert file name to lower or vice versa. when file names converted it should put into appropriate subdirectories.

e.g when files converted it then seperate them out with file etension where it will seperate them out . such as file.pdf, phone.doc both moved to different subdirectory where file.pdf >>>>> is moved to pdf directory which holds FILE.pdf (convertedted uppercase) &&&&&&& phone.doc. whill be moved to doc directory whill hold PHONE.doc etc.


this means main directory will only have normal files and the extension subdirectories will only have converted filenames(all lowercased or upper)

if no ubdirectory exist it should create and put into it. if file doesnt have any extension then it should not moved.


also my second question is :

if i move to subdirectory how can rename the the extension of file name e.g

when files are in pdf folder how can i rename the extension it. e.g
when FILE.pdf is all ready exist in pdf directory when another identical file (duplicate) is moved it should be FILE.pdf1. if there are another one it should be FILE.pdf2 so on .so it should add num,ber to end. using ${string##substring} strips

{{{ by modifying top one}}}}
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




All times are GMT -4. The time now is 04:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0