Greetings & Happy New Years To All!
A client of mine FTP'ed their files up to the server and it all ended up being in UPPERCASE when it all should be in lowercase. Is there a builtin command or a script anyone knows of that will automagically convert all files to lowercase?
Please advise asap... (4 Replies)
It will only accept one argument where it should be upper or lowercase. if user choose to convert filnames to upper case than it should convert to upper or vice versa. if no action taken by the user then should not do anything
any of the files in the current directory. (5 Replies)
Hey, I've just started learning shell script today.
How would I write a bash script file that changes file names from uppercase to lowercase in that directory, the program should warn the user and NOT overwrite the existing file if it's already in lowercase?
for example in a directory i... (1 Reply)
Inside a script I have 2 variables COMP=cy and PT=t. further down the same script I require at the same line to call those 2 variables the first time uppercase and after lowercase ${COMP}${PT}ACE,${COMP}${PT}ace. Can somebody help me
Thanks in advance
George Govotsis (7 Replies)
hi,
i need to write a bash script that does two things.
the program will take from the command line a file name, which is a C code, and an integer, which is the size of my indentation
i would then have to indent every nested code by the number of columns provided by the user in the... (1 Reply)
I just started to learn unix...
and i needed to make a basic script.
i need to
1. read a file (.txt)
2. count the words of EVERY sentece
3. sentences with odd number of words need to be converted into lowercase
sentences with even number of words need to be converted into uppercase
... (6 Replies)
listprocs.sh contains ps -ef | grep "swikar"
1) Write a shell script to convert an input file to all upper case. Name your shell script toupper.sh.
Hint: tr ' ' ' ' will convert all lower case letters to upper case
To use your script, try the following command:
cat... (1 Reply)
Discussion started by: swikar
1 Replies
LEARN ABOUT DEBIAN
mp3::tag::cue
MP3::Tag::Cue(3pm) User Contributed Perl Documentation MP3::Tag::Cue(3pm)NAME
MP3::Tag::Cue - Module for parsing .cue files.
SYNOPSIS
my $db = MP3::Tag::Cue->new($filename, $track); # Name of audio file
my $db = MP3::Tag::Cue->new_from($record, $track); # Contents of .cue file
($title, $artist, $album, $year, $comment, $track) = $db->parse();
see MP3::Tag
DESCRIPTION
MP3::Tag::Cue is designed to be called from the MP3::Tag module.
It parses the content of a .cue file.
The .cue file is looked for in the same directory as audio file; one of the following conditions must be satisfied:
o The "audio" file is specified is actually a .cue file;
o There is exactly one .cue file in the directory of audio file;
o There is exactly one .cue file in the directory of audio file with basename which is a beginning of the name of audio file.
o There is exactly one .cue file in the directory of audio file with basename which matches (case-insensitive) a beginning of the name of
audio file.
If no .cue file is found in the directory of audio file, the same process is repeated once one directory uplevel, with the name of the
file's directory used instead of the file name. E.g., with the files like this
Foo/bar.cue
Foo/bar/04.wav
audio file Foo/bar/04.wav will be associated with Foo/bar.cue.
parse()
($title, $artist, $album, $year, $comment, $track) =
$db->parse($what);
parse_filename() extracts information about artist, title, track number, album and year from the .cue file. $what is optional; it
maybe title, track, artist, album, year, genre or comment. If $what is defined parse() will return only this element.
Additionally, $what can take values "artist_collection" (returns the value of artist in the whole-disk-info field "PERFORMER",
"songwriter".
title()
$title = $db->title();
Returns the title, obtained from the 'Tracktitle' entry of the file.
artist()
$artist = $db->artist();
Returns the artist name, obtained from the 'Performer' or 'Albumperformer' entries (the first which is present) of the file.
track()
$track = $db->track();
Returns the track number, stored during object creation, or queried from the parent.
year()
$year = $db->year();
Returns the year, obtained from the 'Year' entry of the file. (Often not present.)
album()
$album = $db->album();
Returns the album name, obtained from the 'Albumtitle' entry of the file.
comment()
$comment = $db->comment();
Returns the 'REM COMMENT' entry of the file. (Often not present.)
genre()
$genre = $db->genre($filename);
perl v5.14.2 2009-11-28 MP3::Tag::Cue(3pm)