below are the mentioned files, i want t0 change the last character of the name 00000.cdr with e.g bep01.smsc.191214210500-00000.cdr to bep01.smsc.191214210500-92311.cdr next file be like bep01.smsc.191214210500-92312.cdr
I have 500 files please help to change the name like above.
Moderator's Comments:
Putting QUOTE tags around your entire post and removing ICODE tags does not help us see the commands you have used, the output those commands produced, nor the input you're trying to process. Please use CODE tags when showing nulti-line code segments, sample input, and sample output. You can use ICODE tags when showing in-line input, output, or code in the middle of a sentence.
Last edited by Don Cragun; 12-24-2014 at 02:15 AM..
Reason: Removed QUOTE tags, added CODE and ICODE tags.
in Bash i'm trying to rename directories full of files. the file name pretty much stays the same except for the numerical prefix which will be the same for all files. so, i want to rename these...
45-body.php
45-header.php
45-footer.php
etc.
to...
46-body.php
46-header.php... (2 Replies)
Hi all -
I'm trying to rename a large number of files all at once and need some help figuring out the command line syntax to do it. I've already done quite a bit of research with the rename and mv commands, but so far haven't found a solution that seems to work for me. So:
The files exist... (10 Replies)
hi all,
given a path, for example :
/<pwd>/artist/album/
what i would like to do is to rename the album directory like that :
/<pwd>/artist/artist | album/
and i would like to do the latter for all the "artist" directories
and for all the "album" directories that belong to an artist
... (4 Replies)
Hello all, thanks for your time (and this forum, what an awesome resource for newbs like myself!)
Anyways, I've been given the task of importing content from a directory of about...7000 HTML files. They are all named appropriately and broken down by name depending on what book they belong too.... (8 Replies)
hi i have a folder full of files. some of the names are quite off because the dimensions were the same and i had to put a 'b' after the initial number so that it didnt overwrite. what i want is a script in unix to overwrite the filwe name leaving some of the title intact, e.g. below are some... (3 Replies)
Hi all,
Wondering how this could be accomplished........
a directory contains sequentially numbered files from fw01 to fw999.
How would I insert an additional zero so that the directory lists these files in a proper manner?
(i.e. all double digit files from fw01 to fw99 would become... (3 Replies)
I have some 50+ files in the following format :
abcd_vish_running_ZEBRA_20140818.dat_08-14-2014_23:08:23
abcd_vish_running_ZEB-RA_20140818.dat_08-14-2014_23:08:35
abcd_vish_running_ZEB_RA_20140818.dat_08-14-2014_23:08:37
abcd_vish_running_RI-NG_20140818.dat_08-14-2014_23:08:42... (5 Replies)
I have a .ksh script that creates an sftp batch file and runs it through sftp. It works except for one thing. If I try to "put" to a different name, it doesn't use the specified remote name...it still "puts" the original local name.
I've tried both of these, and neither work...it will always... (4 Replies)
What is wrong with this script to rename batch of similar files? For example renaming all *.txt files to *.tab .
$ for i in seq {01..10}; do touch ${i}.txt; done
$ ./rename.sh *.txt txt tab
Error:
mv: ‘01.txt’ and ‘01.txt’ are the same file.
Code is:
#!/usr/bin/bash
# renames.sh
#... (6 Replies)
I wish to rename all files ending in .txt by removing .tex.
Currently I have
me@me-Inspiron-518:~$ ls
a.tex.txt bin b.tex.txt c.tex.txt Desktop Documents Downloads d.tex.txt Music Pictures Public Templates VideosDesired outcome
me@me-Inspiron-518:~$ ls
a.txt ... (2 Replies)
Discussion started by: Xubuntu56
2 Replies
LEARN ABOUT DEBIAN
bchunk
BCHUNK(1) General Commands Manual BCHUNK(1)NAME
bchunk - CD image format conversion from bin/cue to iso/cdr
SYNOPSIS
bchunk [-v] [-p] [-r] [-w] [-s] <image.bin> <image.cue> <basename>
DESCRIPTION
bchunk converts a CD image in a ".bin / .cue" format (sometimes ".raw / .cue") to a set of .iso and .cdr tracks.
The bin/cue format is used by some non-Unix cd-writing software, but is not supported on most other cd-writing programs.
image.bin is the raw cd image file. image.cue is the track index file containing track types and offsets. basename is used for the begin-
ning part of the created track files.
The produced .iso track contains an ISO file system, which can be mounted through a loop device on Linux systems, or written on a CD-R
using cdrecord. The .cdr tracks are in the native CD audio format. They can be either written on a CD-R using cdrecord -audio, or con-
verted to WAV (or any other sound format for that matter) using sox.
The output type depends on the input type (data is just copied). If the input is in ISO format, the output will be. On the other hand, if
the input is raw audio data, the output will be CDR or WAV (the latter if -w is given).
It is advisable to edit the .cue file to either MODE2/2352/2048 or MODE2/2352/2324 depending on whether an ISO filesystem or a VCD is
desired, respectively. The format itself does not contain this feature and in an ambiguous case it can only guess.
OPTIONS -v Makes binchunker print some more unnecessary messages, which should not be of interest for anyone.
-w Makes binchunker write audio tracks in WAV format.
-s Makes binchunker swap byte order in the samples of audio tracks.
-p Makes binchunker go into PSX mode and truncate MODE2/2352 tracks to 2336 bytes at offset 0 instead of normal 2048 bytes at offset
24. Use this option if input is in PSX mode.
-r Makes binchunker output MODE2/2352 tracks in raw format, from offset 0 for 2352 bytes. Good for MPEG/VCD. Use this option if
input is in raw format.
FILES
image.bin
Raw CD image file
image.cue
TOC (Track index, Table Of Contents) file
*.iso
Tracks in ISO9660 CD filesystem format. Can be either written on a CD-R using cdrecord, or mounted (on Linux platforms at least)
through a loop device ('mount track.iso /mnt/cdrom -o loop=/dev/loop0,blocksize=1024').
*.cdr
Audio tracks in native CD audio format. They can be either written on a CD-R using 'cdrecord -audio', or converted to WAV (or any
other sound format for that matter) using sox ('sox track.cdr track.wav').
*.wav
Audio tracks in WAV format.
SEE ALSO cdrecord(1), mkisofs(8), sox(1), cdrdao(1)AUTHORS
Heikki Hannikainen <hessu@hes.iki.fi>
Bob Marietta <marietrg@SLU.EDU>
Colas Nahaboo <Colas@Nahaboo.com>
Godmar Back <gback@cs.utah.edu>
Matthew Green <mrg@eterna.com.au>
Heikki Hannikainen v1.2.0 29 Jun 2004 BCHUNK(1)