02-08-2004
Rename Files with a script ?
Hi All !!!
Is there any solution to get rid of / " * in old files names WITH A SCRIPT
(About 100 Gb of old files)
I know it can be done i just dont know how !
Hope that some one can help
Best R.
Yovel
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Have files of the sort 3p1522015.dgn and need to have them renamed to 152201.dgn. Essentially dropping the 1st 2 characters and the last. I'm relatively new to UNIX and uncertain of where to start. I hope this provides enough detail.
Thanks (5 Replies)
Discussion started by: Dinkster
5 Replies
2. Shell Programming and Scripting
Let me preface this by stating I have absolutely no idea what I'm doing in this arena, but I'm in need of a little help here.
I need to take filenames like this: amwed_0402c-slug~1-cp.jpg
And reduce them to slug~1.jpg
That is, I need to remove the first 12 and last 3 characters. The... (3 Replies)
Discussion started by: cpreovol
3 Replies
3. Shell Programming and Scripting
Hi, i need a bit of help writting a tcsh script which renames all ascii text files in the current directory by adding a number to their names before the extension
so for example, a directory containing the files
Hello.txt
Hello.t
Hello
should have the following changes,
Hello.txt... (2 Replies)
Discussion started by: yakuzaa
2 Replies
4. UNIX for Dummies Questions & Answers
I wrote a simple script that converts my windows text files to unix, so that I can compare them to different unix files purposes of my project.
win2unix file1.txt file1Win.txt
win2unix file2.txt file2Win.txt
etc
Is there a way to simplify this to:
<while .txt in... (5 Replies)
Discussion started by: idano530
5 Replies
5. Shell Programming and Scripting
Hello,
I have this problem.
In a directory I have 4 csv files with this format:
PHOENIX_KM_INTERAZIONI_YYYYMMDD.csv
PHOENIX_KM_TRIPLETTE_YYYYMMDD.csv
NEWCAB_KM_INTERAZIONI_YYYYMMDD.csv
NEWCAB_KM_INTERAZIONI_YYYY_MM_DD.csv
YYYYMMDD: format CURRENT date
I wont rename all files in... (4 Replies)
Discussion started by: manichino74
4 Replies
6. Shell Programming and Scripting
I have the following directories in my home directory,
my scripts
dbmig es
ms_done
my-home
I want my output to look like the following
MyScripts
DbmigEs
MsDone
MyHome
Basically, I want to get rid of spaces,special characters and convert the first letter of each word to uppercase and... (1 Reply)
Discussion started by: ramky79
1 Replies
7. Shell Programming and Scripting
Hi All,
I want to write a script to rename the file in to the incremental order
for example
Original file
filename=/nfs/n1/file1.img
filename=/nfs/n1/file1.img
filename=/nfs/n1/file1.img
filename=/nfs/n1/file1.img
filename=/nfs/n1/file1.img
I want output shpuld be... (4 Replies)
Discussion started by: mangeshpardhi
4 Replies
8. Shell Programming and Scripting
hi there,
i'm using OS X.
i have a bunch of mp3 files strewn across a directory tree that i'd like to rename.
specifically i'd like to remove any track numbers and leading non-alphabetic characters from the filenames like this:
01 - song1.mp3
2 song2.mp3
become:
song1.mp3... (6 Replies)
Discussion started by: creakyshrimp
6 Replies
9. Shell Programming and Scripting
Hi all,
I have a many folders with zipped files in them. The zipped files are txt files from different folders. The txt files have the same names. If i try to
find . -type f -name "*.zip" -exec cp -R {} /myhome/ZIP \; it fails since the ZIP files from different folders have the same names and... (2 Replies)
Discussion started by: pmkenya
2 Replies
10. Shell Programming and Scripting
Hello friends!
I have a problem with my script. I'm a italian boy. Sorry for my english ehehehehehhe.
I've many files .jpg and I would like rename they in this mode:
I have not files with progressive number e I would like rename with progressive number. Example:
DSC_0012.JPG
DSC_0582.JPG... (7 Replies)
Discussion started by: vegetablu
7 Replies
ipack(1) General Commands Manual ipack(1)
NAME
ipack - Manipulate Flex files containing Shapes
SYNOPSIS
ipack -c SCRIPT
ipack -x SCRIPT
ipack -u SCRIPT
DESCRIPTION
Flex files containing Shapes are used for the storage visual elements by the games Exult supports. While expack(1) can operate on such
files, using ipack is more comfortable. It can extract images from the Flex file directly into PNG-format, and create or update Flex files
from a list of PNG files.
The first parameter determines the mode of operation:
-c Creation
New Flex and palette files are created according to the instructions contained in the SCRIPT file.
-u Update
Works like Creation, but updates an existing Flex file.
-x Extraction
The contents of the Flex file described in the SCRIPT file are extracted as PNG is dissected into its contents, as described in this
script file.
Script File Format
Empty lines, and lines starting with a pound sign (#) are ignored.
The names of the associated Flex archive and palette files are given in lines containing optional whitespace, one of the tokens archive or
palette, whitespace, and the filename.
Other lines define one shape each, and must begin with an image slot number, followed by a slash (/), the number of frames, a colon (:),
and finally the PNG file specification. The numbers may be given either in decimal, in octal prefixed with 0; or in hexadecimal prefixed
with 0x. The file specification consists of the filename PREFIX, optionally followed by a number and direction in brackets, optionally
followed by whitespace and the word flat.
Per default, each shape corresponds to a number of PNG files (one for each frame) named PREFIXnn.png with nn replaced by the frame number.
If the optional bracket expression is used in the specification the Shape corresponds to a single PNG file instead. This file contains all
frames, each of which is 8 by 8 pixels in size, arranged next to each other in a rectangular grid. The number in the bracket expression
gives the size of this grid in the direction indicated. The direction can be either down or across.
EXAMPLES
ipack -c island.scr
Creates a Flex file and a palette file as specified by island.scr.
ipack -x island.scr
Extracts all components described in island.scr from the Flex file given therein.
Example script
# script file for island.flx
archive island.flx
# put the palette into this file
palette island.pal
# the zeroth image has 32 frames in the files
# zero00.png to zero31.png
0/32:zero
# image 5 consists of 22 frames stored in file
# five.png in a grid 5 frames across (which means
# 5 rows of which the last holds only 2 frames)
5/22:five(5 across) flat
# image 4 consists of 12 frames stored in file
# four.png in a 3 by 4 grid
4/12:four(4 down) flat
# images 1 to 3 are unspecified
BUGS
Tiled Shapes are currently extracted into multiple PNG files, not a single file as expected during Create/Update.
AUTHOR
This manpage was written by Robert Bihlmeyer. It may be freely redistributed and modified under the terms of the GNU General Public License
version 2 or higher.
SEE ALSO
expack(1), exult(6)
Exult 2002-03-24 ipack(1)