05-30-2012
Quote:
Originally Posted by
SkySmart
thank you. i tried this, and the command is still slow to finish.
You are working with FOUR GIGABYTES of data. Of course it's slow. What's the file size, divided by your maximum disk speed? How much RAM do you have for cache? What's the bus speed of your RAM?
I don't think you're going to improve much on the awk version. You might try tricks with index() instead of regexes.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can perl execute a system command similar to the C function System()?
Thanks.
Gregg (1 Reply)
Discussion started by: gdboling
1 Replies
2. Shell Programming and Scripting
I have a command which will run fine in a unix command prompt. Can you tell how to interprete this command inside perl script......
The command is :
perl -pe 's/(\|333\}.*)\}$/$1|1.6}/' FIA.txt
This will search for the number 333 and appends 1.6 at the end of that line....... (1 Reply)
Discussion started by: vinay123
1 Replies
3. Shell Programming and Scripting
Hi guys,
got a problem with a perl cgi script over here. I need it to run a system command to get the status of a process. Unfortunately the process is owned by a specific user and only this user can get its status. So i tried running the command from the perl cgi with "su", but then i get the... (12 Replies)
Discussion started by: polki
12 Replies
4. Shell Programming and Scripting
Hi,
I have command that should run continuously for 30 mins but not every day not once in a week , not one in a month. whenever i call that particular program that command should run for 30 mins and stop.
#Contents of test.pl
`ls -l *.txt`;
#some other lines of code to print
... (1 Reply)
Discussion started by: vanitham
1 Replies
5. Windows & DOS: Issues & Discussions
I originally posted this to a different forum (I am a new Perl user) and realized the error so I will ask here.
I am on a WindowsXP machine trying to run perl and gawk scripts from the command line. I have perl and gawk installed and environment set to C:\perl\bin and cannot get a script to... (2 Replies)
Discussion started by: 10000springs
2 Replies
6. Shell Programming and Scripting
Hello everyone,
I have a perl script which takes various command line options from user like :
test.pl -i <input_file> -o <output_file> -d <value> -c <value>
Now I have multiple input files in a directory:
<input_file_1>
<input_file_2>
<input_file_3>
<input_file_4>
.....
....
...... (6 Replies)
Discussion started by: ad23
6 Replies
7. Shell Programming and Scripting
Hi all,
When I put the Perl command in a script, I got error.
system("perl -pi -e 's@words@words@g' myFile");
The error is:
Unrecognized character \x8A; marked by <-- HERE after دت مد�<-- HERE near column 15 at -e line 1.
Thanks in advance.
---------- Post updated at 06:30 AM... (0 Replies)
Discussion started by: Lham
0 Replies
8. Shell Programming and Scripting
( sleep 3
echo ${LOGIN}
sleep 2
echo ${PSWD}
sleep 2
while read line
do
echo "$line"
PID=$?
sleep 2
kill -9 $PID
done < temp
sleep 5
echo "exit" ) | telnet ${HOST}
while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies
9. Shell Programming and Scripting
Please what is the most simple way to run some perl command via proxy?
i have perl script an in it:
POST **something**
GET **something**
what should i do before it so its proxified via proxy without authentiffication, like 1.2.3.4:1080?
any way to run whole .pl script via proxy? (3 Replies)
Discussion started by: postcd
3 Replies
10. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 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)