06-30-2009
sed [option] [filename] worked for me ... Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can convert a Lower case variable value to an upper case in the kron shell script. (3 Replies)
Discussion started by: dchalavadi
3 Replies
2. Shell Programming and Scripting
Hi, I have a variable $Ctrcd which contains country names in upper case and i want to convert them into lower case. I have tried so many solutions from already existing threads but couldn't get the correct one.
Can anybody help me with this.....
Thanks a lot.. (2 Replies)
Discussion started by: manmeet
2 Replies
3. Shell Programming and Scripting
I have a package to install and the installation script which does it . The files/directories names in the script are all lower case but the actual package has everything in upper case - file names, directories . I don't want to rename directories and files in the package - it has a lot of them . ... (2 Replies)
Discussion started by: vz6zz8
2 Replies
4. Shell Programming and Scripting
Hi All
I have a script which extracts values from a Database (A persons name) and puts it into a variable in my script IE: $NAME
However the Value in the DB is all in uppercase and contains the users first name and last name
EG:
> echo $NAME
GRAHAM BOYLE
>
What I need is only the... (7 Replies)
Discussion started by: grahambo2005
7 Replies
5. Shell Programming and Scripting
Hi all,
i have a data array as followes.
ARRAY=DFSG345GGG
ARRAY=234FDFG090
ARRAY=VDFVGBGHH
so on..........
i need all english letters to be change to lower case. So i am expecting to see
ARRAY=dfsg345ggg
ARRAY=234fdfg090
ARRAY=vdfvgbghh
so on........
If i have to copy this data in... (8 Replies)
Discussion started by: usustarr
8 Replies
6. Shell Programming and Scripting
Is there a command that can switch a character variable from UPPER case to lower case?
like
foreach AC ( ABC BCD PLL QIO)
set ac `COMMAND($AC)`
...
end
Thanks a lot! (3 Replies)
Discussion started by: rockytodd
3 Replies
7. Shell Programming and Scripting
Hello Unix Gurus :
It would be really appreciative if can find a solution for this .
I have records in a file .
I need to Capitalize the records based on condition .
For Example i tried the following Command
COMMAND -->
fgrep "2000YUYU" /export/home/oracle/TST/data.dat | tr '' ''... (12 Replies)
Discussion started by: tsbiju
12 Replies
8. Shell Programming and Scripting
here is a code
column_name="vivek"
column_name2="ViVeK"
column_name=$(echo $column_name | awk '{print tolower($0)}')
column_name2=$(echo $column_name2 | awk '{print tolower($0)}')
echo "column name 1 lower: $column_name"
echo "column name... (6 Replies)
Discussion started by: vivek d r
6 Replies
9. UNIX for Dummies Questions & Answers
There is a script where we pass the parameter in lower case:
say: . ./scriptName pArameter
#!/bin/ksh
echo "`date` Entering $0 Reloading the $1 table "
mname1=$1
(code to login MYSQL Database)
Truncate table $mname1;
exit
!
Since now there is a limitaion of MYSQL that it accept... (5 Replies)
Discussion started by: ambarginni
5 Replies
10. Shell Programming and Scripting
Hi all,
I am trying to find a way to change first letter in a word from lower case to upper case. It should be done for each first word in text or in paragraph, and also for each word after punctuation like
. ; : ! ?I found the following command
sed -i 's/\s*./\U&\E/g' $@ filenamebut... (7 Replies)
Discussion started by: georgi58
7 Replies
FAPG(1) User Manuals FAPG(1)
NAME
fapg - Fast Audio Playlist Generator
SYNOPSIS
fapg [ options ] /path/to/mp3/dir1 [ /path/to/mp3/dir2 ... ]
DESCRIPTION
fapg is a tool to generate list of audio files (Wav, MP2, MP3, Ogg, etc) in various formats (M3U, PLS, XSPF, HTML, RSS, etc). It is very
useful if you have a large amount of audio files and you want to quickly and frequently build a playlist.
It is coded in C to be as fast as possible, and does not use any specific audio library (like ID3Lib). This allow you to deploy it faster
and easier, and to have better performances since the less informations are loaded. On the other hand, this tool is not (yet) compatible
with all the known formats.
OPTIONS
-b|--backslash
Replace the '/' with '' in Unix path.
-d|--debug
Display useful messages if the program fails ;)
-f|--format=m3u|pls|xspf|html|rss|pla|txx
Choose which format of playlist you want to generate (default is m3u).
-g|--genre=#:#:...
Choose which genres (numerical values only) will be included in the generated playlist (default is all).
-n|--nohardlink
Avoid to parse twice the files because of hardlinks.
-o|--output=/path/to/file.m3u
Choose the name of the playlist file to generate (default behavior is to display on standard output).
-p|--prefix=/the/prefix
Replace the Unix path with another string (useful to give a Samba path for example).
-r|--recursive
Recursively read the subdirectories.
-w|--windows
Replace all Unix characters with Windows characters.
-x|--exclude=#:#:...
Choose which genres (numerical values only) will be excluded in the generated playlist (default is none).
-c|--command=<intern|...>
External binary or script that produces additional fields for RSS feeds (slow).
-s|--stdin
Read filenames and/or directories from standard input instead of command line.
EXAMPLES
Generate a PLS playlist for an album: fapg --format=pls --output=~/path/to/album/list.pls ~/path/to/album
You have a file server using Samba which shares a large amount of audio files for Windows powered computers using Winamp. The directory on
the server containing the files is /samba/mp3 and is visible on the Windows network as \servermp3 : cd /samba/mp3 && fapg --backslash
--output=/samba/mp3/list.m3u --prefix='\servermp3' --recursive --windows ./
An HTML playlist for an album: fapg --output=fapg.html ~/path/to/album
A playlist that contains all your classical tracks may receive the genres to include (or exclude) in one or multiple portions fapg
--genre=32:105 --genre=106:104:103 /path/to/all/music
Generate a podcasting XML file using an external program rss.sh to generate a detailed description: fapg --output=dir.xml -f rss -c
/usr/local/bin/rss.sh -r --prefix=http://thisserver/basedir path/to/mp3
Generate a playlist that will work on a Sansa e200 series MP3 player: fapg -f pla -o /path/to/playlist.pla /path/to/all/music
if command starts with intern the build-in description (Author,Title,Link) is generated. Please note that in all given directories ( and
in ...basedir/xml ) files called podcast.jpg are referenced. Many header fields are set to defaults using environment variables like LOG-
NAME or LANG.
AUTHOR
Antoine Jacquet <royale@zerezo.com>, http://royale.zerezo.com/fapg/. Manpage by Thomas Kappler <thomas.kappler@stud.uni-karlsruhe.de>.
Linux JANUARY 2007 FAPG(1)