Thanks for your replies. I am running this command from the ~/mp3 directory
ludwig: I thought your second suggestion might solve the problem but instead of not finding the cover.jpg file I am now getting the track.mp3 file not found:
I think the problem is the leading ./ How do I get rid of that?
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
mp3cut
MP3CUT(1) User Command MP3CUT(1)NAME
mp3cut - cut and assemble MP3 files
SYNOPSIS
mp3cut [ -o outputfile ] [ -T title ] [ -A artist ] [ -N album-name ] [ -t [hh:]mm:ss[+ms]-[hh:]mm:ss[+ms] ] mp3file [[ -t ... ] mp3file1
...]
DESCRIPTION
The mp3cut utility cuts and assembles MP3 files according to the time specifications given on the command line. The mp3 output is written
to the outputfile. If no outputfile is given on the command-line, the name for the outputfile is created from the name of the first mp3
file by adding output.mp3 at the end. The -t flag specifies which part of the mp3 file following it will be extracted.
OPTIONS -o outputfile
Specify where the output is to be written.
-T title
Specify the title ID3 tag for the output file.
-A artist
Specify the artist ID3 tag for the output file.
-N album-name
Specify the album name ID3 tag for the output file.
-t [hh:]mm:ss[+ms]-[hh:]mm:ss[+ms]
Specify which part of the following mp3file will be included in the output file.
hh = hours
mm = minutes
ss = seconds
ms = milliseconds
If the starting time is omitted, 00:00:00+00 is used as starting time. If the ending time is omitted, the end of the MP3 file is
used as ending time.
EXAMPLES
mp3cut -o output.mp3 -t 23:42+500-01:23:42+750 input.mp3
Cut the segment from 23 minutes, 42 seconds and 500 milliseconds to 1 hour, 23 minutes, 42 seconds and 750 milliseconds from
input.mp3 and write the output to output.mp3.
mp3cut -t 00:01-00:02 input1.mp3 -t -15:23 input2.mp3 -t 9:87+500- input3.mp3
Append the segments from input1.mp3, input2.mp3 and input3.mp3 and write the output to input1.output.mp3.
AUTHORS
Manuel Odendahl <manuel@bl0rg.net>, Florian Wesch <dividuum@bl0rg.net>
February 2005 MP3CUT(1)