01-03-2011
Hi Radoulov,
thanks for responding.
Thing is that, The piece of codfe that you have provided produced syntax error,even though I could understand the logic behind your code.
After that, I tried to resolve it in many ways and tried with a while condition.
m posting my query again because, I could not get exactly from the error message, where i am going wrong.
else no one wud play and pass one's time with silly ping pongs.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys....
Got a scenario in which I need to skip parsing the header record while I do an awk.
Does awk has the flexibility to accomplish this?.
If so, how do we do this?.
Thanks !!!
-Anduzzi :) (2 Replies)
Discussion started by: anduzzi
2 Replies
2. Shell Programming and Scripting
Hello,
I'm trying to make a shell script to skip comments from an XML file, but with the code below only deletes comments that are in one line.
Can you tell me what can be added here?
nawk '
{
if($0 !~/<!--/) { a=0 }
if($0 ~/<!--/ && $0 ~/-->/) {a=1}
if($0 ~/<!--/) {a=1}
if... (1 Reply)
Discussion started by: majormark
1 Replies
3. Shell Programming and Scripting
Im trying to ssh to a remote machine to grep 'x info' *.log and Im able to get the grep output as expected but "after" the policies (1st 14 lines) - I need to skip the first 14 lines.
Its SunOS.
Plz help??? (1 Reply)
Discussion started by: anthonyraj75
1 Replies
4. Shell Programming and Scripting
Im trying to ssh to a remote machine to grep 'x info' *.log and Im able to get the grep output as expected but "after" the policies (1st 14 lines) - I need to skip the first 14 lines.
Its SunOS.
Plz help??? (7 Replies)
Discussion started by: anthonyraj75
7 Replies
5. Shell Programming and Scripting
HI All,
I am trying to split a xml using awk. now the issue is i want to skip three lines from the xml file. first two and last one based on pattern. plz some one help. i am new to awk and struggling :wall:
<?xml version="1.0"?>
<notification>
.....
.....
.....
.....
........ (24 Replies)
Discussion started by: ganesan kulasek
24 Replies
6. Shell Programming and Scripting
Hello All,
I have a large file, more than 50,000 lines, and I want to split it in even 5000 records. Which I can do using
sed '1d;$d;' <filename> | awk 'NR%5000==1{x="F"++i;}{print > x}'Now I need to add one more condition that is not to break the file at 5000th record if the 5000th record... (20 Replies)
Discussion started by: ibmtech
20 Replies
7. UNIX for Dummies Questions & Answers
I need to amend the code blow such that it reads a "black list" before the "print" statement; if "substr($1,1,6)" is found in the "blacklist" it will ignore that record and continue. the code is from an awk script that is being called from shell script which passes the input values.
BEGIN { "date... (5 Replies)
Discussion started by: bazel
5 Replies
8. Shell Programming and Scripting
Hello,
I am new to AWK and in UNIX in general. I am hoping you can help me out here.
Here is my data:
root@ubuntu:~# cat circuits.list
WORD1
AA
BB
CC
DD
Active
ISP1
ISP NAME1
XX-XXXXXX1
WORD1
AA
BB
CC (9 Replies)
Discussion started by: tattoostreet
9 Replies
9. Shell Programming and Scripting
I am trying to use awk skip each line with a ## or # and check each line after for STB= and if that value in greater than or = to 0.8, then at the end of line the text "STRAND BIAS" is written in else "GOOD".
So in the file of 4 entries attached.
awk tried:
awk NR > "##"' "#" -F"STB="... (6 Replies)
Discussion started by: cmccabe
6 Replies
10. Shell Programming and Scripting
The awk below does put in VUS in the 9th field but I can not seem to skip the header then add the VUS. I tried to incorporate NR >=2 and NR > 1 with no luck. Thank you :).
input
Chr Start End Ref Alt Func.refGene PopFreqMax CLINSIG Classification
chr1 43395635 ... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT DEBIAN
pianobooster
PianoBooster(6) PianoBooster(6)
NAME
pianobooster - learn the piano just by playing a game
DESCRIPTION
Piano Booster is piano teaching software that can provide piano lessons for beginners as well as for advanced players. It can be used for
teaching music theory and is useful for piano practice and learning piano technique.
SYNOPSIS
pianobooster [flags] [midifile]
OPTIONS
-d Increase the debug level
-q Quick start
-h, --help
Display a help message
-v Display the version number and exit
USAGE
Piano Booster is a fun way of playing along with a musical accompaniment and at the same time learning the basics of reading musical nota-
tion. The difference between playing along to a CD or a standard midi file is that Piano Booster listens and follows what you are playing
on a midi piano keyboard.
The program has been designed to allow you to play along on a midi piano keyboard with the scrolling notes shown on the screen. The notes
you press on the keyboard appear as coloured lines on the musical stave, the colour of which depends whether you have pressed the right or
wrong note.
A different musical instrument sound is used for your playing depending whether you are playing the right or wrong notes. This feature also
allows Piano Booster to be used with printed sheet music so you can hear if you are playing the right notes while at the same time keeping
your eyes on the printed score. The music accompaniment will automatically wait for you to find and play the correct notes in the piece.
Timing markers show whether you are playing ahead or behind of the beat. They appear as white crosses that are drawn over the note.
FEATURES
- Piano Booster follows you when playing along to a musical accompaniment. If you stop, then so does the music.
- Play a single hand and Piano Booster will play the other hand, as well as the rest of instruments, in time with you.
- Change the speed of playback to match your playing ability.
- Transpose +/- 12 semitones without stopping the play back.
- Change the Key Signature of the piece.
- Plays any standard midi or kar file.
- Play along to any instrument in the midi file.
- Adjust the volume of the current part or the volume your piano part.
- See how accurate you're playing.
- Change the start bar to start playing from any bar in the music. The repeat bars allows you to practice just a few difficult bars contin-
uously.
- Timing markers are white crosses that are drawn over each note and show if you are playing ahead or behind the beat.
- A different instrument sound is used for the right and wrong notes that you play.
SEE ALSO
You can find more about the game on its homepage: http://pianobooster.sourceforge.net/
AUTHOR
The game has been written by Louis J. Barman <louisjb@users.sourceforge.net>. This manual page was written by Miriam Ruiz <lit-
tle_miry@yahoo.es> for the Debian project.
PianoBooster(6)