06-23-2006
korn shell,
It seems it does not work.
Any suggestions? Thanks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I got a sample BASH script like this :
$ cat test
MYVAR=$1
DUMMY1="This is tricky"
DUMMY2=24
echo $
$ ./test DUMMY1
./test: line 5: This is tricky: syntax error in expression (error token is "is tricky")
**I was expecting the output as "This is tricky", ah! but no luck
**But... (2 Replies)
Discussion started by: jaduks
2 Replies
2. Shell Programming and Scripting
Hi Experts,
I have binary files contain an ID Line as:
:
:
$Header: FNDSCMON.fmb 115.6 2000/01/11 10:26:10 pkm ship$
:
:
where the ID Line format is:
$Header: <File_Name> <Version> <Last_update_date_time> pkm ship$
In this Example:
File_Name = FNDSCMON.fmb
Version = 115.6... (13 Replies)
Discussion started by: victorcheung
13 Replies
3. Shell Programming and Scripting
Hi All,sorry for inconvience....please find the attachement for my question i am unable to paste the question here....please help me in slving thisthanksk.k (4 Replies)
Discussion started by: G.K.K
4 Replies
4. Shell Programming and Scripting
Format of one input file:
# >length=1
seq program data 909 1992
seq program record 909 1190
Desired output result:
# >length=1
length=1 program data 909 1992
length=1 program record 909 1190
I wanna to replace all the column 1 content (exclude the content start with "#") with the... (5 Replies)
Discussion started by: cpp_beginner
5 Replies
5. Shell Programming and Scripting
Input file:
CCNI data564_input1 264
CORO1A data564_input2 155
ABC-B data17_input1 3466
ABC-B data17_input2 1133
ABC-B data17_input3 2162
ABC-B data17_input4 2019
HNRNPA2B1 data95_input1 101
HNRNPA2B1 data95_input2 340
IFITM1 data105_input2 291
IFITM2 data105_input1 505... (3 Replies)
Discussion started by: cpp_beginner
3 Replies
6. Shell Programming and Scripting
I have a file myfile with only one value 1000.I am using it in a shell script.Each time i run the script,the file shud get incremented by 1. I have used the below code for incrementing the value-
curr=`cat myfile`
echo $curr
curr=`expr $curr + 1`
But i am not sure how to save this replaced... (2 Replies)
Discussion started by: saga20
2 Replies
7. Shell Programming and Scripting
Hi,
I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C.
Thanks a lot!!
Here is a sample of my question.
e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
Discussion started by: dirkaulo
3 Replies
8. Shell Programming and Scripting
Hi,
Below is my input file :
AAAG(12) TC(14)
AACCCT(66) AACCCT(30) AACCCT(18) AACCCT(48)
TCTG(12) TCTG(20) TCTG(16) AC(12) AC(12) TCTG(16) TCTG(12) AC(12) AC(12) AC(12)
AC(26) AC(14)
AGTG(12) AC(24)
AGTG(12) TCC(12)
Desired output :
AAAG TC
AACCCT AACCCT AACCCT AACCCT
TCTG TCTG... (4 Replies)
Discussion started by: perl_beginner
4 Replies
9. Shell Programming and Scripting
I have a wordpress site. I need add "post_title" to all my "post_content" mysql field. Thanks.
my content: Free <b>Online Tips</b> output:Free post_title <b>Online Tips</b>:
This code does not work:
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'Free <b>Online... (0 Replies)
Discussion started by: tara123
0 Replies
10. Shell Programming and Scripting
Hello all ; )
I'got a file1 with a lot of emails like :
fistname.lastname@domaine1.comAnd another file2 with emails like
fistname.lastname@domaine2.ct.netI need a shell script that will read each line from the file1 and try to find if in file2 the fistname.lastname exist.
If yes, the... (1 Reply)
Discussion started by: Aswex
1 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)