12-16-2011
Never thought of using a "for" loop?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: super_duper_guy
2 Replies
2. UNIX for Dummies Questions & Answers
I need to know whether nyfile/mypath exists on the file system in the root directory.
How to do this (1 Reply)
Discussion started by: ramky79
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: royzlife
7 Replies
4. UNIX for Advanced & Expert Users
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)
Discussion started by: vibhor_agarwali
4 Replies
5. Shell Programming and Scripting
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)
Discussion started by: pstein
1 Replies
6. Shell Programming and Scripting
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)
Discussion started by: koeji
5 Replies
7. UNIX for Dummies Questions & Answers
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)
Discussion started by: apta
3 Replies
8. Shell Programming and Scripting
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)
Discussion started by: steiner
5 Replies
9. UNIX for Beginners Questions & Answers
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)
Discussion started by: Sekhar419
4 Replies
10. UNIX for Beginners Questions & Answers
What is the difference ../directory path and ./directory path in ksh? (1 Reply)
Discussion started by: TestKing
1 Replies
LEARN ABOUT DEBIAN
mp3tag
MP3TAG(1) General Commands Manual MP3TAG(1)
NAME
mp3tag - view and manipulate ID3v1 tags.
SYNOPSIS
mp3tag [ -s song ] [ -a artist ] [ -l album ] [ -y year ] [ -e comment ] [ -k track ] [ -g genre ] [ -r ] file [ file ... ]
DESCRIPTION
This manual page briefly documents the mp3tag command. This manual page was written for the Debian GNU/Linux distribution because the orig-
inal program does not have one.
mp3tag is a program that allows you to both view and manipulate ID3v1 metadata tags. Running the command with just a filename will display
the file's current tag. Setting some options will cause the tag to be updated and displayed.
OPTIONS
-a artist
Set the artist name to artist. Strings over thirty characters are truncated.
-e comment
Set the comment to comment. Strings over thirty characters are truncated.
-g genre
Set the genre to genre. This is a single integer with a value of 0 to 254 corresponding to the appropriate Winamp compatible genre
(use '-g list' to list all supported genres).
-k track
Set the track number to track. This is a single integer with a value of 0 to 255. Specifying this field truncates the comment field
to twenty-eight characters, as per the ID3v1.1 standard.
-l album
Set the album name to album. Strings over thirty characters are truncated.
-r Merge new tag with any preexisting tag in the file.
-s song
Set the song name to song. Strings over thirty characters are truncated.
-y year
Set the year to year. Strings over four characters are truncated.
EXAMPLES
Display foo.mp3's current ID3v1 info:
mp3tag foo.mp3
Set foo.mp3's artist to 'Bar', and album to 'Baz':
mp3tag -a Bar -l Baz foo.mp3
Set foo.mp3's year to 2001, merging it with any tag already present:
mp3tag -y 2001 -r foo.mp3
AUTHOR
mp3tag was written by Bram Avontuur <bram@avontuur.org>.
This manual page was written by Brian Boucheron <brian@boucheron.org>, for the Debian GNU/Linux distribution (but may be used by others).
SEE ALSO
More info on ID3v1 can be found at <http://www.id3.org/id3v1.html>.
February 19, 2004 MP3TAG(1)