Hallo,
i need a Prompting read in my script:
read -p "Enter your command: " command
But i always get this Error:
-p: is not an identifier
When I run these in c-shell i get this error
/usr/bin/read: read: bad option(s)
How can I use a Prompt in the read command? (9 Replies)
Hi,
The proble is below:
Assume i have files starting from "process" then date/time then ".log".
ex .
process.20100504092942.log
process.20100503152213.log
process.20100430144217.log
process.20100429153644.log
process.20100428121200.log
process.20100427130746.log... (2 Replies)
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Hi Friends,
I would like to read all the record from one txt file to other file txt
For example I have two txt file a.txt and b.txt. I need to read a.txt record by record and I need add the system date @ end of each record before moving it to b.txt. Could you please share the coding for... (4 Replies)
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
I would create a bash script than parse like this:
test.sh -p (protocol) -i (address) -d (directory)
I need retrive the value after -p for example...
understand???
I hope...
thanks (6 Replies)
I have a script which uses READ to detect choice of menu option...now I want to change the script without doing whole rewrite such that when user runs ./script.sh 5 it would execute menu option 5 rather than user running ./script.sh waiting for it to load and then pressing "5 enter"
Is it... (1 Reply)
For some reason read -e isn't working in my script. I need a directory as input from a user and I'd like for them to be able to use tab complete which is why I'm using -e. When the script is run, I get:
read: line 6: illegal option -e
In order to just figure out what is going on with the -e... (4 Replies)
Hi.
How can I create a history function? (By "read" command or so)
&
How can I configure a read command so that the arrow keys are not displayed so funny? (^[[A)
Thanks in advance. (4 Replies)
Hi All,
I have written a menu driven bash shell script.
Current Output is as below:
-------------------------------------
Main Menu
-------------------------------------
Option 1
Option 2
Option 3
Option 4
Exit
=====================================
Enter your... (3 Replies)
Discussion started by: kiran_j
3 Replies
LEARN ABOUT DEBIAN
parsec47
PARSEC47(6)PARSEC47(6)NAME
parsec47 - retromodern hispeed shmup
DESCRIPTION
Defeat retro enemies modernly.
PARSEC47 is a retromodern hi-speed shoot 'em up where you get to defeat retro enemies modernly. The player must destroy enemies while
avoiding their projectiles and collecting green clusters of boxes for points.
OPTIONS
These options are available:
-brightness n
Set the brightness of the screen.(n = 0 - 100, default = 100)
-luminous n
Set the luminous intensity.(n = 0 - 100, default = 0)
-lowres
Use the low resolution mode.
-nosound
Stop the sound.
-window
Launch the game in a window.
-fullscreen
Launch the game in fullscreen.
-reverse
Reverse the shot key and the slow key.
-slowship
Use the slow speed ship in all game modes.
-nowait
Disable the intentional slowdown.
USAGE
How to play:
Movement
Arrow/Num key / Joystick
Shot [Z][L-Ctrl] / Trigger 1, 4, 5, 8
Slow / Roll, Lock
[X][L-Alt][L-Shift] / Trigger 2, 3, 6, 7
Pause [P]
Select the stage by a keyboard or a joystick. Press a shot key to start the game. All stages are endless and created randomly each time.
The game continues until you lose all ships.
Control your ship and destroy enemies. While holding a slow key, the ship becomes slow.
You can also select the game mode from 2 types. Press a slow key in the title screen to change the game mode. Each mode has a different
barrage pattern.
Roll mode: Hold a slow key to charge the roll shot energy. The roll shot is fired when you release the key.
Lock mode: While holding a slow key, you can shot the lock-on laser that aims an enemy in the front of your ship.
The ship extends 200,000 and every 500,000 points.
SEE ALSO
You can find more about the game on its homepage: http://www.asahi-net.or.jp/~cs8k-cyu/windows/p47_e.html
AUTHOR
This game has been written by Kenta Cho <cs8k-cyu@asahi-net.or.jp>
PARSEC47(6)