Ask a Question related to AIX, Design and Development.
-
St. Claire #1
Copy File and Rename
I need to copy about 200 files from one directory to another while
renaming them. Does anyone have a short script to do this?
TIA
St. Claire Guest
-
Copy & rename entire folder structure
I was wondering how to copy an entire folder structure with sub folders and files, then rename the main folder. I have used the cfdirectory to... -
Why can't I rename this file?
Why can't I rename this file under my normal login? $ pwd /var/tmp $ ls -ld drwxrwxrwt 3 bin bin 83456 May 13 11:51 . $ ls -l... -
Quick way to rename text boxes when copy/paste
Hi Folks, I am trying to add text boxes to document. I did see that I can copy and paste, but it leaves the name the same. Then when you add text to... -
#25555 [Opn->Bgs]: rename/copy/fopen should be able to handle uploaded
ID: 25555 Updated by: sniper@php.net Reported By: xuefer at 21cn dot com -Status: Open +Status: ... -
#25555 [NEW]: rename/copy/fopen should be able to handle uploaded
From: xuefer at 21cn dot com Operating system: all PHP version: 4.3.3 PHP Bug Type: Feature/Change Request Bug description: ... -
Marrek #2
Re: Copy File and Rename
Uzytkownik "St. Claire" <tstclaire@hotmail.com> napisal w wiadomosci
news:8581fcb0.0309261059.53c84e90@posting.google.c om...for safe reasons do check that files are the correct one you are going to> I need to copy about 200 files from one directory to another while
> renaming them. Does anyone have a short script to do this?
>
> TIA
move:
cd /dir;for i in *;do ls -al $i;done
example - this will move files to "newdir" with "newname" before old name.
You can also play with "basename":
for i in *;do mv $i /newdir/newname$i;done
Marrek Guest



Reply With Quote

