06-18-2001
It's good to pick up these sorts of shortcuts to save a lot of time when in a hurry or under pressure - the little things like knowing a flag here and there often make the difference between finding a vital piece of information that can lead to solving a problem.
As with most general issues there are many ways to do things in UNIX - you could have piped tail into the more command to achieve the same effect, variety is the spice of of life!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, just a quick question really on what the <<! at the end of a line actually means ? as you can see i have an oracle startup script that has an sqlplus command. im making a guess here, so correct me if im wrong but the "startup" and "exit" commands that follow are sqlplus command and not unix... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
2. UNIX for Dummies Questions & Answers
how can I add data from command line to end of file? (3 Replies)
Discussion started by: bryan
3 Replies
3. Shell Programming and Scripting
hi,
could anyone tell me the command to append spaces at the end of the line.
for example, i need 1000 spaces after the word "helloworld"
echo "helloworld " i need to achieve this in someother way hardcoding 1000 spaces is not practical.
as i am totally new... (3 Replies)
Discussion started by: kavithacs
3 Replies
4. Programming
hello,
i use this command in my code:
(void) sprintf ( LBuf, "/bin/sed 's/\\//g' %s > %s", tmp1,tmp2);
but i get this error :
sh: syntax error at line 1:'end of file' unexpected
any help please
thank you (1 Reply)
Discussion started by: kamel.seg
1 Replies
5. Shell Programming and Scripting
Hi,
I want to add \n as a EOF at the end of file if it does't exist in a single command. How to do this?
when I use command
echo "1\n" > a.txt
and
od -c a.txt
0000000 1 \n \n
0000003
How does it differentiate \n and eof in this case?
Regards,
Venkat (1 Reply)
Discussion started by: svenkatareddy
1 Replies
6. Shell Programming and Scripting
I am looking to change a data file into a javascript string and this is the code that I am using:
sed -i '' -e 's/^/str += "/' -e 's/$/";/' file.xml
The first part
-e 's/^/str += "/'
works as intended, but the second part
-e 's/$/";/'
adds an additional newline to my file, so that instead of... (3 Replies)
Discussion started by: figaro
3 Replies
7. UNIX for Dummies Questions & Answers
I have text file which is a tab delimited one. Sample data from the file is shown below:
unix is\ great\ os
linux\ is superb
I want to replace that backslash with empty string preserving the tab delimiter. Output should be
unix is great os
linux is ... (3 Replies)
Discussion started by: p.akhilreddy4u
3 Replies
8. Shell Programming and Scripting
Hi ,
Am trying to send mail using the mail command, but the mail command is working but its not sending automatically after pressing .(dot) in the command prompt it sends . How to achieve that. Also it showing the below line after pressing the dot .
/home/abc1/dead.letter... Saved message in... (5 Replies)
Discussion started by: rogerben
5 Replies
9. Shell Programming and Scripting
Oracle Enterprise Linux
We want to track how long a process takes to complete its execution. This is what we want in the schell script
Before the process is started , get the time with date, hours and minutes
execute the process
After the process has ended , get the time with date,... (5 Replies)
Discussion started by: omega3
5 Replies
10. Shell Programming and Scripting
hello Team,
I am looking for sed command or script which will append word at end of line. for example. I want to validate particular filesystem with mount |<filesystem name> command. if nodev parameter is not there then it should add in the fstab file with receptive to the filesystem.
# mount... (8 Replies)
Discussion started by: ghpradeep
8 Replies
alex4(6) Games Manual alex4(6)
NAME
alex4 - Alex the Allegator 4, a retro platform game
SYNOPSIS
alex4 [gamefile]
DESCRIPTION
Guide Alex the Allegator through the jungle in order to save his girlfriend Lola from evil humans who want to make a pair of shoes out of
her.
Alex the Allegator 4 is a platform game in the style of old Gameboy games. You can play the game with a keyboard or a joystick. On the
keyboard the following keys are used:
Arrow keys Movement
Alt Jump
Control Shoot (only when you've found eggs to fire!)
When you're on the menu screen, you can choose the window size with the following keys:
1 160x120 window
2 320x240 window
3 640x480 window
4 full-screen
CUSTOM MAPS
The Alex the Allegator homepage links to many user-contributed maps. Each set should contain several ".map" files and a text file describ-
ing the collection. To play the maps, simply start alex4 with the name of the text file as argument.
If you want to create your own maps, you can use the built-in map editor (described below), but you'll need to create the description file
yourself. This is a plain text file that needs to list the file names of your maps between "#start#" and "#end#" markers (these markers
are not optional). You can include a description of the maps outside these markers. For example, for a collection of three maps:
In this game, Alex must rescue the Yellow Tetris Piece from the pirates of Ching Shih.
#start#
journey.map
sea-of-despair.map
endgame.map
#end#
USING THE MAP EDITOR
Use the map editor to create your own maps. You can enter the map editor from the menu screen or by pressing F1 while playing a custom
map. The basic editor commands are:
Shift+L load an existing map
Shift+S save the map
Insert+Left/Right widen the map
Delete+Left/Right shorten the map
F1 change the map's properties, e.g. its name.
Maps are composed of tiles. Tiles can contain scenery, enemies, items and other game objects. The mouse cursor shows the currently
selected tile. To draw tiles, use the left mouse button. You can cycle through the available tiles by using the z and x keys, choose a
tile from a palette using the p key, or pick a tile from the screen using the right mouse button.
Tiles can be given special behavior using the following commands:
q instant death
w map exit
e roll activator
r breakable block
t submerged in water
y on the water surface
a Alex' start location (facing left)
Shift+A Alex' start location (facing right)
Use the following command to place items and enemies:
1 extra life
2 star bonus
3 cherry bonus
4 egg
5 extra heart
Shift+Q grunt
Shift+W spear grunt
Shift+E crusher
Shift+R spike fish
Shift+T jellyfish
Shift+Y cannon
Shift+U spike truck boss
Shift+I ground pounder boss
SEE ALSO
The Alex the Allegator series homepage <http://allegator.sourceforge.net/>
AUTHOR
Alex the Allegator 4 was written by Johan Peitz, Free Lunch Design.
This manual page was written by Peter De Wachter <pdewacht@gmail.com>, for the Debian project (but may be used by others).
2008-02-07 alex4(6)