01-09-2017
Quote:
Originally Posted by
Don Cragun
There are millions of ways to separate the code other than using the preprocessor.
What do you want to use other than whether or not SECOND_SIMULATOR has been #defined to make the decision of what code to use?
Thanks for your quick reply. Could you tell me any of 2 ways.
I would like to know the efficiency of using this and other ways.so I can use the better one.
Thank you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello experts,
This might prove to be a stupid question to some of you, but I have tried to tackle it in different ways. Being new to shell scripting, I am requesting your help in coming up with an elegant solution. I am using Korn shell.
We have a directory with file names with the pattern:... (2 Replies)
Discussion started by: prashk15
2 Replies
2. UNIX for Advanced & Expert Users
I am just wondering on which is the best way to write programs on UNIX. Which one is better from below:
a) Spawning threads per client connection/request?
b) fork-exec new processes per client connection/request?
Assume that I am doing some database system on linux which is supposed to run... (3 Replies)
Discussion started by: rkalyankumar
3 Replies
3. Shell Programming and Scripting
Hey guys,
Sorry for the basic question but I have a lot of files that I want to separate into groups based on filenames which I can then cat together. Eg I have:
(a_b_c.txt)
WB34_2_SLA8.txt
WB34_1_SLA8.txt
WB34_1_DB10.txt
WB34_2_DB10.txt
WB34_1_SLA8.txt
WB34_2_SLA8.txt
77_1_SLA8.txt... (1 Reply)
Discussion started by: Breentax
1 Replies
4. UNIX for Dummies Questions & Answers
Hello,
:wall:
I have a 12 column csv file. I wish to delete the entire line if column 7 = hello and column 12 = goodbye. I have tried everything that I can find in all of my ref books.
I know this does not work
/^*,*,*,*,*,*,"hello",*,*,*,*,"goodbye"/d
Any ideas?
Thanks
Please... (2 Replies)
Discussion started by: Chris Eagleson
2 Replies
5. Shell Programming and Scripting
hi Gurus,
I need separate a file which is one huge line to multiple lines based on certain number of charactors. for example:
abcdefghi high abaddffdd
I want to separate the line to multiple lines for every 4 charactors.
the result should be
abcd
efgh
i hi
gh a
badd
ffdd
Thanks in... (5 Replies)
Discussion started by: ken6503
5 Replies
6. Shell Programming and Scripting
Hi,
for fd in $(grep "/tmp/" hello.properties)The grep gives me the below output:
deploydir=/tmp/app1/dfol
prodir= /tmp/hello/prop
......
Now i want to store /tmp/app1/dfol then /tmp/hello/prop in a variable so that i can check if those folders files exists or not.
The delimiter would... (4 Replies)
Discussion started by: mohtashims
4 Replies
7. Shell Programming and Scripting
Hi,
Variable1 = MKT1,MKT2,MKT3,MKT4
Now i want to store each of these value seperated by comma to a array and access each of the values. Also find out number of such values seperated by comma.
Variable1 can have any number of values seperated by comma.
Thanks :) (3 Replies)
Discussion started by: arghadeep adity
3 Replies
8. Shell Programming and Scripting
Hi,
Variable=MKT1,MKT2,MKT3 and so on
i am trying to seperate MKT1,MKT2,MKT3 and store each in a variable.
the values in variable1 may vary. I am using bash (8 Replies)
Discussion started by: arghadeep adity
8 Replies
9. Shell Programming and Scripting
Hi guys!
First time poster on here, was wondering if someone could help with a problem which I'm facing.
Is it possible to use awk or sed to separate the below output based on TRANSACTION_DATE? The output would then feed into DataStage.
Contents of CSV file:... (5 Replies)
Discussion started by: Jimmy_the_tulip
5 Replies
10. Shell Programming and Scripting
I have a very inefficient awk below that I need some help improving. Basically, there are three parts, that ideally, could be combined into one search and one output file. Thank you :).
Part 1:
Check if the user inputted string contains + or - in it and if it does the input is writting to a... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
gl-117
GL-117(6) gl-117 overview GL-117(6)
NAME
gl-117 - an OpenGL action flight simulator
SYNOPSIS
gl-117 [-dlevel -h -v]
DESCRIPTION
gl-117 is an OpenGL and SDL based action flight simulator written in ISO C++. Enter the Eagle Squadron and succeed in several challanging
missions leading though different landscapes. Five predefined levels of video quality and an amount of viewing ranges let you perfectly
adjust the game to the performance of your system. The game provides joystick and mouse support, sound effects, and music.
OPTIONS
-dlevel
Set the debug level to level in [0..5]. '0' means quiet and will avoid any output, '1' will log fatal errors causing the program to
crash on stderr, '2' will also print exceptions on stderr, '3' will add warnings on stdout, '4' prints additional information (pre-
defined) on stdout, and '5' gives developer specific messages on stdout.
-h Print a short summary on stdout and then quit immediately.
-v Display the version number of gl-117 and then quit immediately.
CONFIGURATION
gl-117 uses a predefined working directory ".gl-117" in the user's home directory to load and store all savegame files and read the plain
text configuration files "conf" and "conf.interface". If there are no config files available, gl-117 will create them using standard set-
tings. The contents of the files are quite self-explanatory.
DOCUMENTATION
Please look at the gl-117 user manual (gl-117.pdf) for installation instructions and further gameplay related descriptions.
COPYRIGHT
gl-117 is distributed under the terms of the GPL.
AUTHORS
Thomas A. Drexl (tom.drexl@gmx.de)
27 February 2003 GL-117(6)