The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
renaming files
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
renaming files
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
02-04-2008
jxh461
Registered User
Join Date: Jun 2002
Posts: 49
renaming files
I have a list of files named ab_*.csv
I would like to remane them all by removing the ab_ and have *.csv
I did the following but I am surely missing something.
/* wrong script */
for i in `ls -1 ab_*`; do mv ab_$i $i; done
Thanks in advance.
jxh461
View Public Profile
Find all posts by jxh461
Find jxh461's past nominations received
Find jxh461's present nominations given