08-21-2008
Looks like your posts are homework questions.
10 More Discussions You Might Find Interesting
1. Web Development
Hi,
If i give a number say "1234" the output of mysql query should be:
one thousand and twenty four
How to write mysql query for this?
With regards
Vanitha (5 Replies)
Discussion started by: vanitham
5 Replies
2. Shell Programming and Scripting
Hi experts
I need to pick 2 matched words from the same line.....
I have given below an example file
eg:
O14757 hsa04110 hsa04115 2 P38398 hsa04120 1
O15111 hsa04010 hsa04210 hsa04920 hsa04620 hsa04660 hsa04662 hsa05200 hsa05212 hsa05221 hsa05220 hsa05215 hsa05222 hsa05120 13 O14920... (4 Replies)
Discussion started by: binnybio
4 Replies
3. Shell Programming and Scripting
HI,
cat test
abc
echo "def" >> test
output is
cat test
abc
def
the needed output is
cat test
abc def
and so on (5 Replies)
Discussion started by: jobycxa
5 Replies
4. Shell Programming and Scripting
Hello all
i know it is pretty hard one but you will manage it all
after noticing and calculating i find a rhythm for the file i want to edit
to copy the last 12 characters in line but the problem is to add after first 25 characters in same line
in other way too copy the last 12 characters... (10 Replies)
Discussion started by: princesasa
10 Replies
5. Shell Programming and Scripting
Hi,
I want to print all words till the last word after the match of "ERROR" word. For e.g.
I'll get an sqlplus error with
e.g. 1
$ ./calltest_fn.ksh
var test_var:=test_fn1; calltest_fn.ksh file1 file2 file3 ERROR at line 4: ORA-06550: line 4, column 11: PLS-00201: identifier... (5 Replies)
Discussion started by: dips_ag
5 Replies
6. Shell Programming and Scripting
Hi All,
I have searched the forum and tried to print only matching(pattern) words from the file, but its printing entire line. I tried with grep -w. I am on sunsolaris.
Eg:
cat file
A|A|F1|F2|A|F3|A
A|F10|F11|F14|A|
F20|A|F21|A|F25
I have to search for F (F followed by numbers) and ... (5 Replies)
Discussion started by: gsjdrr
5 Replies
7. Shell Programming and Scripting
Gurus,
I have a file containing lines like this :
Now, number of words in each line varies. My need is, if a word repeats in a line get it printed. Also total number of repeats.
So, the output would be :
Any help would be highly appreciated.
Thanks & Regards (5 Replies)
Discussion started by: AshwaniSharma09
5 Replies
8. Shell Programming and Scripting
Hi,
Please suggest a way to print number of words in the end of each line.
<input file>
red aunt house
blue sky
bat and ball game
<output file>
red aunt house 3
blue sky 2
bat and ball game 4
Thanks! (2 Replies)
Discussion started by: mira
2 Replies
9. Shell Programming and Scripting
I have a text file ( basically a log file) and i have 2 words (alpha, beta),
Now i want to search these two words in one line and then print next 15 lines in a temp file. there would be many lines with alpha and beta But I need only last occurrence with "alpha" and "beta" and next 15 lines.
... (4 Replies)
Discussion started by: kashif.live
4 Replies
10. Shell Programming and Scripting
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies
LEARN ABOUT DEBIAN
audio::mpd::playlist
Audio::MPD::Playlist(3pm) User Contributed Perl Documentation Audio::MPD::Playlist(3pm)
NAME
Audio::MPD::Playlist - class to mess MPD's playlist
VERSION
version 1.120610
SYNOPSIS
$mpd->playlist->shuffle;
# and lots of other methods
DESCRIPTION
Audio::MPD::Playlist is a class meant to access & update MPD's playlist.
Note that you're not supposed to call the constructor yourself, an Audio::MPD::Playlist is automatically created for you during the
creation of an Audio::MPD object - it can then be used with the "playlist()" accessor.
RETRIEVING INFORMATION
as_items
my @items = $pl->as_items;
Return an array of Audio::MPD::Common::Item::Songs, one for each of the songs in the current playlist.
items_changed_since
my @items = $pl->items_changed_since( $plversion );
Return a list with all the songs (as Audio::MPD::Common::Item::Song objects) added to the playlist since playlist $plversion.
ADDING
/ REMOVING SONGS
add
$pl->add( $path [, $path [...] ] );
Add the songs identified by $path (relative to MPD's music directory) to the current playlist. No return value.
delete
$pl->delete( $song [, $song [...] ] );
Remove the specified $song numbers (starting from 0) from the current playlist. No return value.
deleteid
$pl->deleteid( $songid [, $songid [...] ] );
Remove the specified $songids (as assigned by mpd when inserted in playlist) from the current playlist. No return value.
clear
$pl->clear;
Remove all the songs from the current playlist. No return value.
crop
$pl->crop;
Remove all of the songs from the current playlist except the song currently playing.
CHANGING PLAYLIST ORDER
shuffle
$pl->shuffle;
Shuffle the current playlist. No return value.
swap
$pl->swap( $song1, $song2 );
Swap positions of song number $song1 and $song2 in the current playlist. No return value.
swapid
$pl->swapid( $songid1, $songid2 );
Swap the postions of song ID $songid1 with song ID $songid2 in the current playlist. No return value.
move
$pl->move( $song, $newpos );
Move song number $song to the position $newpos. No return value.
moveid
$pl->moveid( $songid, $newpos );
Move song ID $songid to the position $newpos. No return value.
MANAGING PLAYLISTS
load
$pl->load( $playlist );
Load list of songs from specified $playlist file. No return value.
save
$pl->save( $playlist );
Save the current playlist to a file called $playlist in MPD's playlist directory. No return value.
rm
$pl->rm( $playlist );
Delete playlist named $playlist from MPD's playlist directory. No return value.
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-03-01 Audio::MPD::Playlist(3pm)