Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-12-2006, 02:19 AM   #1
Registered: Sep 2004
Location: Bend, Oregon
Distribution: Ubuntu Breezy and FC4
Posts: 43

Rep: Reputation: 15
bash in ubuntu: save the wildcard expansion

I am trying to retag a bunch of my mp3 files. Is there some way to reuse the wildcard expansion values? Perhaps an example is in order:

id3 -T%1 -a%2 -t%3 "/home/music/*-*-*.mp3"

I would like to make that %1 be the value of the first * (Track), the %2 be the second * (Artist), and the %3 be equal to the third * (Title). I seem to remember doing something like this in the past, but can't for the life of me figure out how I did it. After running the above command, I got this error:

id3: Track: %1: Expected a number.

Thanks for your help,


P.S. Ubuntu Breezy using bash

Last edited by beebop; 03-12-2006 at 02:20 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to save data using Ubuntu Distro Lefneer311 Linux - Newbie 15 11-27-2005 08:07 AM
bash shell command line expansion hansi umayangan Linux - General 2 03-13-2005 12:31 PM
Bash Script Expansion Problem meadensi Linux - Newbie 1 03-04-2005 06:17 PM
Bash: show on terminal and save to file shadowhunter Linux - Newbie 5 12-13-2003 05:49 PM
bash script $n variable expansion cortez Programming 6 12-08-2003 05:03 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration