07-04-2009
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I found below script to check whether the variable is a digit in ksh.
############################
#!/bin/ksh
REPLY="3f"
if ]*\)'` != ${REPLY} && "${REPLY}" != "0" ]]
then
print "is digit\n"
else
print "not digit\n"
fi
############################
Although it works fine, but... (6 Replies)
Discussion started by: sleepy_11
6 Replies
2. Shell Programming and Scripting
problem String
~~~~~~~~~~~~~~~~~~
icecream= { smart peopleLink "good" LC "happy" ,
smartpeopleLink "dull" LC "sad" }
aend = {smart vc4 eatr kalu}
output needed
~~~~~~~~~~~~~~~~~~
smart peopleLink "good" LC "happy" , smartpeopleLink "dull" LC "sad"
smart vc4... (4 Replies)
Discussion started by: keshav_rk
4 Replies
3. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
4. Shell Programming and Scripting
Hi,
I don't know hot to make this command work:
ls -laR | grep "^-" | awk '{print $9}'| grep "$.txt"
It should return the list of file .txt
It's important to search .txt at the end of the line, becouse some file name have "txt" in their name but have other extensions (13 Replies)
Discussion started by: DNAx86
13 Replies
5. AIX
AIX 4.2
I am trying to do an rsh grep to search for date records inside server logs by doing this :
xx=`date +"%a %b %d"`
rsh xxx grep "^$XX" zzz
gives :
grep: 0652-033 Cannot open Jun.
grep: 0652-033 Cannot open 11.
But if I do :
xx=`date +"%a %b %d"`
grep "^$XX" zzz
it works... (2 Replies)
Discussion started by: Browser_ice
2 Replies
6. Shell Programming and Scripting
Hi all,
can any one suggest me the script to grep multiple strings from ps -ef
pls correct the below script . its not working/
i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK.
bash-3.00$ ps -ef | grep blu
lscpusr 48 42 ... (11 Replies)
Discussion started by: steve2216
11 Replies
7. Shell Programming and Scripting
Hello.
Following recommendations for one of my threads, this is working perfectly :
#!/bin/bash
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
#!/bin/bash
CNT=$( grep -c -e "some text_1... (4 Replies)
Discussion started by: jcdole
4 Replies
8. Homework & Coursework Questions
Hi All,
As per my knowledge in unix, my code looks fine. But still I am getting error (expr:syntax error). Please help me to resolve this error.
Script :
PRE_LBNO=0
PRE_DATE=0
TOT_PAY=0
TOT_REM=0
TOTAL=1
for Record_Type in `cut -c 1 Inputt.dat`
do
if ;
then
CURR_LBNO=` cut -c... (6 Replies)
Discussion started by: lathanandhini
6 Replies
9. Shell Programming and Scripting
This really puzzles me. The following code gives me the error 'expr: syntax error' when I try to do multi-line comment using here document
<<EOF
echo "Sum is: `expr $1 + $2`"
EOF
Even if I explicitly comment out the line containing the expr using "#", the error message would still exist... (3 Replies)
Discussion started by: royalibrahim
3 Replies
10. UNIX for Beginners Questions & Answers
When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies
LEARN ABOUT DEBIAN
airstrike
AIRSTRIKE(6) GAMES AIRSTRIKE(6)
_ _ _ _ _
/ (_)_ __ ___| |_ _ __(_) | _____
/ _ | | '__/ __| __| '__| | |/ / _
/ ___ | | | \__ |_| | | | < __/
/_/ \_\_|_| |___/\__|_| |_|_|\_\___|
NAME
airstrike - 2d dogfight game in the tradition of 'Biplanes' and 'BIP'
DESCRIPTION
Airstrike is a 2d biplane dogfight game in the tradition of the Intellivision and Amiga games 'Biplanes' and 'BIP'. It features a robust
physics engine and several other extensions of the original games.
SYNOPSIS
airstrike [options]
OPTIONS
Airstrike reads all the configuration options from a configuration file at startup but you can override from command line a few of the
options:
--fullscreen
Runs the game in fullscreen mode.
--sound
Runs game with sound effects, if support for that has been compiled in.
--nosound
Runs the game without sound.
--noalpha
Game graphics will not be antialiased. This makes it run faster.
--alpha
Game graphics will be antialiased.
--config CONFIGFILE
Use given configuration file instead of the one which location is compiled into Airstrike.
Configuration file name is '.airstrikerc' and it's located in your home directory.
CONTROLS
Airstrike is controlled from keyboard:
RIGHT Plane nose goes up.
LEFT Plane nose goes down.
COMMA Accelerate.
DOT Shoot.
SPACE Drop a bomb.
ESC Pause game and open game options menu. From menu you can change options, view release notes and quit it.
LICENCE
This is free software; you can redistribute it and/or modify it under the terms specified in the GNU Public Licence (GPL).
WARRANTY
None.
COPYRIGHT AND CREDITS
Ulf Ekstrom
Game author, programming and graphics
Peter Eismann
Windows port, comments and ideas
Eero Tamminen
Sound, graphics, game objects, makefiles, comments and ideas
Alessandro Giusti
Graphics and ideas
And many others for comments, bug reports and ideas.
Airstrike Version 1.0 AIRSTRIKE(6)