The solution is in post #2.
You must specify a start directory for "find" .
Yeah, I worked that out!
Right, suddenly twigged what's going on, the command works if the path for the cover.jpg is included but this will obviously vary according to album. So basically what I need is to create a variable for the album path and pass it to the eyeD3 command so that it looks like:
Last edited by barrydocks; 12-16-2011 at 11:13 AM..
Hi,
By default FIND command searches for matching files in all the subdirectories within the specified path.
Is there a way to restrict FIND command's search path to only the specified directory and NOT TO scan its subdirectories.
Any help would be more than appreciated.
Thanks and Regards (2 Replies)
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Hello Folks,
A wrapper takes an argument of file or directory name.
I want to allow paths that reside within the current directory only.
Can simply discard the paths like "/A" & "../" as they go outside the current by looking at the path beginning.
How to validate this one:
A/../../../b... (4 Replies)
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Does anyone know of a way to zip the resulting file from a find command?
My approach below finds the file and zips the entire directory path, which is not what I need.
After scanning the web, it seems to be much easier to perform gzip, but unfortunately the approach must use zip.
find `$DIR`... (5 Replies)
I have a script like this running under OS X 10.8. The problem arises when the find command encounters a space in the path name. I need the "dir" variable as I'll be extending the script to more general use.
#!/bin/bash
CFS=$IFS
IFS=$(echo)
set dir = "/Users/apta/Library/Mail\... (3 Replies)
Hello,
i want to script on sh to check from a path if the directory exist and isn't empty.
I explain:
path is : /aaa/bbb/ccc/ccc_name/ddd/
Where the cccc_name is in a list, so i think it's $1
My command
find -name /aaa/bbb/ccc/$1/ddd/ didn't work because my $1 is the same and not... (5 Replies)
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
What is the difference ../directory path and ./directory path in ksh? (1 Reply)
Discussion started by: TestKing
1 Replies
LEARN ABOUT DEBIAN
tagmp3
tagmp3(1) User manual tagmp3(1)NAME
tagmp3 - manipulate ID3v1 tags
SYNOPSIS
tagmp3 [ -n ] mode [ format ] [ file ] ...
DESCRIPTION
tagmp3 allows you to set and remove ID3v1 tags from mp3 files. Additionaly move mode can be used to move mp3 files according to their ID3v1
tag. An ID3v1 tag is a chunk of extra informations such as artist name, album and genre. ID3v1 tags are displayed by most mp3 players.
MODE
show show file's ID3v1 tag.
set sets file's ID3v1 tag according to format.
move move file to a destination based on FORMAT.
del remove file's ID3v1 tag if any.
list displays numeric music genres along with their meaning.
-h print a (not so) short help message.
-v print version and exit.
OPTIONS -n Show what will be done, don't alter any file.
FORMAT STRING
The format string is a character string composed of zero or more directives: ordinary characters (not %), which are not interpreted and
conversion specifications, each of which results in the corresponding ID3v1 tag field substitution. Each conversion specification is
introduced by the character %. The following lines describes each conversion specification along with its associated ID3v1 field. Special
sequence %% is substituted with a single %.
%A Artist Name
%a Album Name
%t Song Title
%T Track Number
%y Year
%g Genre
%c Comments
format string for set mode
For set mode the format string is a list of ID3v1 fields followed by a ':' (next chars are the field value) or a '?' (ask user for field
value)
example: tagmp3 set "%A:Pink Floyd %a:The Wall %t? %T?" *.mp3
For each mp3 of this directory, sets the artist name to Pink Floyd and the album to The Wall. For each file ask for the title and
the track number. Leave the other fields untouched. Be aware that genre field require a numeric value. Known genres can be dis-
played with the list mode.
format string for move mode
The format string is the destination path where each field identifier is substituted with the tag value.
example: tagmp3 move "/home/foo/mp3/%A/%a/%T-%t.mp3" *.mp3
with the set example above will move all mp3 to "/home/foo/mp3/Pink Floyd/The Wall/{track}-{title}.mp3"
If you prefer the "flat" naming scheme, you will use something like
tagmp3 move "%A-%t.mp3" *.mp3
NOTES
move mode never overwrite files.
move mode creates intermediate directories specified in the format string. Each directory creation is to be confirmed by the user.
ID3v2 tags are not supported so far.
If a file can't be moved ( wrong file type, ID3v1 tag absent or blank field , ...) then it is left untouched.
Fake mp3 (i.e. Wave file with .mp3 extension) are moved into "fake-mp3/" directory in move mode. set mode refuses to tag them since this
would add noisy artifact at the end of the song.
BUGS
Plenty of :)
For move mode, source and destination must reside on the same file system / partition.
AUTHOR
Laurent Alacoque <laureck@users.sourceforge.net> CopyLeft 2001
Bugs, patch, infos, new releases, girls, money go to :
http://mpgtx.sourceforge.net/
Linux APRIL 2001 tagmp3(1)