Sponsored Content
Top Forums Shell Programming and Scripting print only last two words of a line Post 302227752 by pradeepreddy on Friday 22nd of August 2008 01:20:17 AM
Old 08-22-2008
thanks for u reply.
Since i am new to shell script can u explain in detials
 

10 More Discussions You Might Find Interesting

1. Web Development

Query to print numbers in words

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

Print two matched words from the same line

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

How to print the words in the same line with space or to the predefined line?

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

Copying x words from end of line to specific location in same line

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

Print all the words after a match word

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

Print only matching words

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

Count and print all repeating words in a line

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

print number of words in each line

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

Search words in a line and print next 15 lines.

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

Replace particular words in file based on if finds another words in that line

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
PYKARAOKE(6)															      PYKARAOKE(6)

NAME
pykaraoke_mini - free CDG/MIDI/MPEG karaoke player SYNOPSIS
pykaraoke_mini DESCRIPTION
pykaraoke is a free karaoke player for Linux, FreeBSD and Windows. You can use this program to play your collection of CDG, MIDI and MPEG karaoke songs. PyKaraoke Features: * CDG (MP3+G, OGG+G) playback - Play standard CDG karaoke files * MIDI (.MID/.KAR) playback - Play MIDI format karaoke files * MPEG playback - Play karaoke songs and movies in MPEG format * Playlist - Queue up songs, sit back and enjoy * Searchable song database - Easily find your songs from the main screen * Search inside ZIP files - Play MP3+G/MIDI files wrapped in ZIP files * Cross-platform - Runs on Linux, FreeBSD and Windows USAGE
pykaraoke_mini is a frontend for the pycdg and pympg karaoke players. It is similar to pykaraoke.py, but it is designed for use on small portable devices rather than PC's. In particular, it could be useful on any device lacking a keyboard and mouse. It presents a scrolling list of songs to choose from, sorted by title, artist, or filename. It works within the same pygame window used to render the karaoke songs themselves, so the scrolling interface is not available while a song is being performed. The biggest strength of pykaraoke_mini is that it does not rely on a keyboard or a windowing interface, so it is ideal for use with a joystick or even an IR remote control in a bar. Unlike pykaraoke, pykaraoke_mini does not store a database of song files, nor does it search around through different folders to find your song files. Instead, it is your responsibility to build a catalog file, which is a text file that contains one line per each song. Each line should be of the form: filename <tab> title <tab> artist You can include international characters by encoding the file in UTF-8. All three of these fields will be presented to the user in the scrolling list. The filename is assumed to be relative to the catalog file itself. If you like, you can maintain multiple different catalog files ofthis form, which will allow you to run pykaraoke_mini with different sub- sets of your song files. Use the --catalog command-line option to specify the full path to your catalog file; the default filename is songs/catalog.txt. While navigating the scrolling menu, the following keys are available: up / down : scroll through the list. Hold the button down to scroll very rapidly. pageup / pagedown : scroll a page at a time. enter : select the highlighted song for performance. tab : change the sort mode between title, artist, and filename. The current sort key is displayed first for each file. + / - : enlarge or reduce the font scale. This also affects the font scale when a MIDI file is selected (but does not affect CDG or MPG files). a-z : search for a song beginning with the indicated letter. If you type multiple letters, search for a song beginning with the string you type. SEE ALSO
You can find PyKaraoke's home page at: http://www.kibosh.org/pykaraoke/ AUTHOR
PyKaraoke was written by Kelvin Lawson <kelvinl@users.sourceforge.net> and William Ferrell <willfe@gmail.com>. This manual page was written by Miriam Ruiz <little_miry@yahoo.es>, for the Debian project (but may be used by others). july 16, 2006 PYKARAOKE(6)
All times are GMT -4. The time now is 11:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy