You can use anbu23's suggestion as a starting point, with some minor changes since the names you want aren't stored in a file and since you don't want the numbers in the new names to start at 00001. If the command ls *-00000.cdr works without giving you an error for an argument list that is too long, try something like:
otherwise, try something like:
Last edited by Don Cragun; 12-24-2014 at 04:01 AM..
Reason: Changed ".txt" to ".cdr" to match name changes in post #1 in this thread.
This User Gave Thanks to Don Cragun For This Post:
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
mpc123
mpc123(1) General Commands Manual mpc123(1)NAME
mpc123 - your handy Musepack audio player
SYNOPSIS
mpc123 [options] file(s)
DESCRIPTION
mpc123 is a command-line player for the Musepack audio compression format. mpc123 reads mpc audio files and decodes them to the devices
specified on the command line.
During playback, you can pass to the next playlist element (or a random one if one of the -z and -Z options were used, see below) by send-
ing SIGINT to the process, thus usually pressing ^C will act as a "next-button" for the player.
OPTIONS --gain N, -g N
Set gain (audio volume) to N (0-100 inclusive, default 100, 0 mutes sound)
-o driver
Set output devicetype to driver; possible drivers include:
oss
Linux Open Sound System
alsa
Advanced Linux Sound Architecture
alsa09
ALSA version 0.9 and newer (you should really be using this)
esd
Enlightenment sound daemon
arts
Analog Real Time System (kde sound daemon)
null
Debugging output target
--audiodevice dev, -a dev
Use dev for audio-out; If not specified, the program tries to pick some sane defaults, based on the used audio output driver. Common
devices include:
/dev/dsp or /dev/dsp1
for oss output
default or hw:0
for alsa09 output
--au filename.au, -u filename.au
Use au file filename.au for output
--cdr filename.cdr, -c filename.cdr
Use raw file filename.cdr for output (this can be used directly with cdrecord's -audio option)
--wav filename.wav, -w filename.wav
Use wave file filename.wav for output
--list file, -@ file
Use playlist file as list of Musepack files; The playlist format is simple: one file per line. You can easily generate a playlist for
mpc123 with the find(1) command:
find /path/to/musicroot -iname *.mpc -fprint file
--random, -Z
Play files randomly until interrupted
--shuffle, -z
Shuffle list of files before playing
--verbose, -v
Increase verbosity (default verbosity is 0), the more -v, the more verbose mpc123 becomes
--quiet, -q
Reset verbosity to 0 (no title or boilerplate); this is the default
--help, -h
Print the help screen, with some brief usage information
AUTHOR
This manual page was written by Daniele Sempione <scrows at oziosi.org>; Fernando Vezzosi <fvezzosi at masobit.net> made some edits
January 2006 mpc123(1)