Hi,I am new to shell scripting and i want to find the line numbers of matching braces.
The file contents are as follows
File XXX.dat
1 ( CLASS "FRUIT"
2 (TYPE "PERSISTENT")
3 (MESSAGE_TYPE "M")
4 (GET_REQRD "Y")
5 (SET_REQRD "Y")
6 )
7 ( CLASS... (3 Replies)
hi
i have a file , that contains data like
34343538 3136414D 45583030 30302E54 445816AMEX0000.T
524E2020 20202020 20202020 20202020 RN
20202020 20203030 38303030 30303030 0080000000
30303030 30300D 000000.
20080724-051254.668419 D 473... (1 Reply)
Hi Everybody,
I am trying to write a script that will get some perticuler data from a file and redirect to a file.
My Question is,
I have a Very huge file,In that file I have my required data is started from 25th line and it will ends in 100th line.
I know the line numbers, I need to get all... (9 Replies)
Hi there
does anybody know how i can get the line number from an entry or entries in a file ?? for example if i had a file
test1
test2
test3
test1
and i needed to get the line numbers for all instances of test1 in that file
with the answer being (1,4)
Would anybody be able... (7 Replies)
Hi All,
My file looks some thing like this,
File 1: -
A 10
B 30
C 5
D 25
E 72
F 23
now my requirement is to find the line with highest number in it, i;e the result should be
E 72
Thanks in Advance (1 Reply)
Hello Everyone.
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
else
... (5 Replies)
Hello All,
What i am doing is , i tail a file from certain chatacter and then cat -n to get the line numbers.I search for a particular string and gets it line number. What i am interested in is the next line immediately after the pattern i search.
But grep gives me result for all line... (5 Replies)
Hello,
I am trying to find out the line numbers where regex match and put them into a file with below command:
awk '/'$pat'/ {print NR}' $fileName >> temp.txt
where $pat is the regex
but this command is taking a lot of time to execute with bigger files for size more than 5000000... (8 Replies)
Good morning,
My first time actually posting in this forum, though I have used this forum to help with numerous projects.
I am trying to figure out why my if statement does not work. I have a file where a line is inputted every 15 seconds. I want this if statement to check what the last line... (3 Replies)
Discussion started by: Shanrunt
3 Replies
LEARN ABOUT DEBIAN
moon-buggy
moon-buggy(6) Games Manual moon-buggy(6)NAME
moon-buggy - drive some car across the moon
SYNOPSIS
moon-buggy [-hnsV] [--help] [--no-title] [--show-scores] [--version]
DESCRIPTION
Moon-buggy is a simple character graphics game, where you drive some kind of car across the moon's surface. Unfortunately there are dan-
gerous craters there. Fortunately your car can jump over them!
OPTIONS
The program understands the following command line options.
-h, --help
shows a short usage message.
-m, --mesg
disable write access to your terminal by other users, so your boss can't disturb your game play with the help of "write" or "fin-
ger".
-n, --no-title
skips the title screen.
-s, --show-scores
shows the current highscore list and exits.
-V, --version
prints the program's version to standard output and exits.
KEYS
The moon-buggy is controlled by a couple of keys, which are described near the bottom of the screen. Most important are the following
keys.
SPC, j makes your car jump. The length of a jump is fixed and you can only start a new jump, while the wheels have contact to the ground.
a, l fires the mining laser. The laser is used to remove stones, which may block your way.
q quits the game prematurely. But you still keep your score and may enter the highscore list.
FILES
The following files on your system are related to moon-buggy.
/usr/games/moon-buggy
the moon-buggy executable.
/var/games/moon-buggy/mbscore
the global score file
$HOME/.mbscore
the local score file. This is used, if moon-buggy has no write access to the global score file.
SEE ALSO
Moon-buggy Usage and Maintenance by Jochen Voss.
COPYING
Copyright (C) 2004 Jochen Voss
Moon-buggy is free software. Read the file COPYING of the source code distribution for details or press 'c' at moon-buggy's title screen.
AUTHOR
The program moon-buggy was implemented by Jochen Voss (voss@seehuhn.de).
moon-buggy 1.0.51+esd Dec 27 2004 moon-buggy(6)