9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm looking for a way to solve the following scenario:
A shell should automatically trigger / run when a text file is placed or present at a specific location.
My idea - to create a cron / anacron for every minute and inside that i will call a temp script. Temp script will move to my... (9 Replies)
Discussion started by: Gautham
9 Replies
2. Shell Programming and Scripting
hi there,
i'm using OS X.
i have a bunch of mp3 files strewn across a directory tree that i'd like to rename.
specifically i'd like to remove any track numbers and leading non-alphabetic characters from the filenames like this:
01 - song1.mp3
2 song2.mp3
become:
song1.mp3... (6 Replies)
Discussion started by: creakyshrimp
6 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I am having trouble calculating some numbers and I was hoping someone could help me solve this.
I have one file with 1 column and what I'm trying to do is add up the lines until a certain value is reach, then jump to where it last finished counting and continue.
so for ex: if I... (27 Replies)
Discussion started by: verse123
27 Replies
4. SCO
We are using SCO OS 5.05 server and we are doing a manual ftp to another SCO OS 5.05 server to backup our database.
We are using the Bourne shell.
We would like to automate the ftp backup of our database instead of doing it manually.
It would be nice to run a script.
Also would there be anyway... (4 Replies)
Discussion started by: texastig
4 Replies
5. Shell Programming and Scripting
I want to make a script to use wget to find and download mp3s on a website into a directory with a name derived from that URL. So far I have:
#!/bin/sh
echo “MP3 Downloader”
echo -n "Enter full URL address of website or website subdirectory > "
read text
cd ~
mkdir $text
cd $text
... (3 Replies)
Discussion started by: Garnett
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
is it possible to automatically run a script (bash) when an event occurs?
I mean, let's say that I (or one of my users) plug in a flash memory (USB) ... is it possible to run a script every time I do this action (let's say to log user, date and other infos on a file)?
Thanks!
Bye... (5 Replies)
Discussion started by: TShirt
5 Replies
7. Shell Programming and Scripting
Hi All
I'm trying to take a .flac file and use metaflac to write
the tag info into a file, Then read the title portion of the tag and rename the original .flac file with this info.
lets call this script renameflac
now on the command line if I type:
metaflac myfile.flac... (9 Replies)
Discussion started by: vbslim
9 Replies
8. Shell Programming and Scripting
hi i need to make a script that will check the directories of the users on mp3 or mp4 files. if so they must be automaticly deleted and they have to get a warning message instead.
this should be running every day at 1 pm and should be done within the cron file.
could someone help me with... (2 Replies)
Discussion started by: stefan
2 Replies
9. Shell Programming and Scripting
Hi,
I'm a beginner in unix.As a part of my script i need to remote logon using ssh.
my script run as being asked for password and logons only after the user enters the password correctly. But my script stops executing after that as I login to a different server(different shell if i'm right).... (3 Replies)
Discussion started by: dayanand
3 Replies
PYTAGS(1) [FIXME: manual] PYTAGS(1)
NAME
pytags - set and remove tags on media files from filename and options
SYNOPSIS
pytags [OPTIONS] file [file...]
DESCRIPTION
pytags is a simple, general-purpose tool for setting and removing media file tags. With no options, pytags prints a tag summary for all
files specified on the command line. Options can be used to set and remove tags on files.
Using --format, it is easy to change or create tags on by parsing metadata from filenames according to an arbitrary format string. This
makes it simple to tag files that are consistently named.
Additionally, tags can be manipulated directly with the --add, --set, and --remove options. These options are processed in order, so
options specified later on the command-line may cause values set by earlier options to be overwritten. These options must appear after the
--format, if it is used.
OPTIONS
--add=EXPR
Append a tag value all files according to EXPR. EXPR should be an expression like "artist=Foo". May be specified multiple times to add
multiple values.
--format=FORMAT
Tag files with metadata extrapolated from filenames using format string FORMAT; see the section called "FORMAT STRINGS". This option
must be specified before --add, --set, or --remove.
--set=EXPR
Set a single tag on all files according to EXPR. EXPR should be an expression like "artist=Foo". May be specified multiple times to set
multiple tags. --set cannot be used to specify multiple values for a single tag. To do that, use --remove followed by multiple --add
options.
--remove=TAG
Remove tags named TAG. May be specified more than once to remove multiple tags.
-h, --help
Show summary of options and exit.
-v, --version
Show version of program and exit.
FORMAT STRINGS
The format string expected by --format is the same as that for pytagsfs. See the pytagsfs manual page for more information.
EXAMPLES
Remove the genre tag from all .ogg files in the current directory.
$ pytags --remove genre *.ogg
Set the artist and album tag on all .mp3 files, and remove the genre tag.
$ pytags --set artist=Foo --set album=Bar --remove genre *.mp3
Tag all of the .flac files in the current directory. All such files are assumed to be in the format "tracknum artist - trackname
[album].flac".
$ pytags --format '%n %a - %t [%l].flac' *.flac
BUGS
Please report bugs on launchpad at http://launchpad.net/products/pytagsfs/+bugs.
pytags relies on mutagen (the underlying Python tags library) to choose an appropriate tag format for the files being tagged. This cannot
currently be overridden.
SEE ALSO
pytagsfs(1)
AUTHOR
Forest Bond
Author.
COPYRIGHT
Copyright (C) 2007, 2008, 2009
[FIXME: source] 2009-12-04 PYTAGS(1)