04-02-2013
How to remove ^M from the EOL?
The only way I know of is manually as follows:
To remove for example ^M from a file:
- vi the file name that has ^M at the end of each line.
- Hit <Esc>
- Type :g/
- Hold the CNTRL key and press V and M then release the CNTRL key At the buttom you should see this by now: :g/^M
- Then type /s///g at the end of the line. You should see this g/^M/s///g now.
- Hit <enter>. All ^M at the end of each line should go away by now.
- Save the file and exit.
Good luck
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am new to shell scripting but have successfully created some of my own scripts using awk and sed. However, I have come across a problem that I cannot solve on my own and have not been able to find a good example that relates to what I am trying to do.
What I need is for the... (4 Replies)
Discussion started by: kixazz2529
4 Replies
2. UNIX and Linux Applications
I have lines in a file like this (140,000+ entries):
value1,
value2,
value3,
"
"
I want to concatenate the three (there are 22) lines with commas so it looks like this
value1, value2, value3
"
"
I'm trying with
:g/,$/s/,$/, /g
but that is not flying.
any ideas? (6 Replies)
Discussion started by: dbauhaus
6 Replies
3. Shell Programming and Scripting
Hello,
I am using the following script to read some log and then contruct my email for notification.
When I run this on my test server, i am getting the output as below,
But when I move to another server, the EOL seems to not affect,
should I use some setting so the output is... (1 Reply)
Discussion started by: cv_pan
1 Replies
4. Shell Programming and Scripting
Hi,
I have a text as below
test1 test2 test3\
test4 test5 test6 test7
newtest1 newtest2\
newtest3 newtest4 newtest5
And need this to be replaces to
test1 test2 test3 test4 test5 test6 test7
newtest1 newtest2 newtest3 newtest4 newtest5
So my requirement is to remove the EOL... (5 Replies)
Discussion started by: praveenbvarrier
5 Replies
5. How to Post in the The UNIX and Linux Forums
working on script and saving ftp log
before log save want to remove the password
password appears after constant "PASS"
thanks
pp (1 Reply)
Discussion started by: ppaprota
1 Replies
6. Shell Programming and Scripting
working on interactive ftp script
saving log and want to remove the password from log
so "quote PASS foofoo" would become "quote PASS XXXXXXX"
replacing or removing the password is of no matter
have tried several sed commands but have only been successful with character matching not pattern
... (2 Replies)
Discussion started by: ppaprota
2 Replies
7. Linux
How can I insert End of line (EOL) in Unix to file. Thanks (5 Replies)
Discussion started by: mrn6430
5 Replies
8. OS X (Apple)
I was editing a file with vi and crashed so when I opened the file again I had the .swp file to deal with. I made the wrong choice trying to recover my file and wound up with a file with no eol (end of line) characters.
I have forgotten the code to substitute and don't want to make an even... (2 Replies)
Discussion started by: gale
2 Replies
9. What is on Your Mind?
Hard to imagine that in the two decades of its existence this product once ruled supreme, but the news is finally there:
RIP Internet Explorer: Twitter mourns and mocks death of Microsoft (0 Replies)
Discussion started by: figaro
0 Replies
LEARN ABOUT DEBIAN
torus-trooper
Torus Trooper(6) Torus Trooper(6)
NAME
torus-trooper - speeding ship sailing through barrage
DESCRIPTION
Speed! More speed!
Torus Trooper is a fast-paced abstract scrolling shooter game. It features 3D graphics and a style similar to that of games such as Tem-
pest.
OPTIONS
These options are available:
-brightness n
Set the brightness of the screen.(n = 0 - 100, default = 100)
-luminosity n
Set the luminous intensity.(n = 0 - 100, default = 0)
-res x y
Set the screen resolution to (x, y).
-nosound
Stop the sound.
-window
Launch the game in a window.
-fullscreen
Launch the game in fullscreen mode.
-reverse
Reverse a shot key and a charge shot key.
USAGE
How to operate:
Movement
Arrow / Num / [WASD] / Joystick
Hold an up key to increase speed.
Shot [Z][L-Ctrl][.] / Trigger 1, 4, 5, 8
Hold a shot key to open automatic fire.
Charge shot
[X][L-Alt][L-Shift][/] / Trigger 2, 3, 6, 7
Hold a charge shot key to charge energy.
- A charge shot is released when you release a key.
- A charge shot penetrates enemies and wipes out bullets.
- A score multiplier is increased according to a number of destroying enemies and bullets.
- A charge shot acts as a regenerative break.
Pause [P]
How to play:
At the title screen, select a grade(Normal, Hard, Extreme) and a starting level. Press a shot button to start a game. Press an escape key
to quit a game.
Drive a ship forward and destroy enemies. When time runs out, game is over.
Remaining time is displayed at the left up corner.
Remaining time varies according to events:
Ship was destroyed(-15 sec.)
You ship is destroyed when it is hit by a bullet.
Bonus time(+15 sec.)
You can earn bonus time when you reach a certain score. The point you have to get is displayed at the right up corner.
Destroy the boss(+30 or 45 sec.)
The boss enemies appear when you destroy or overtake a certain number(displayed at the left down corner) of enemies, and you can
earn bonus time by destroying them.
Replay mode
At the title screen, press a charge shot key to see a replay of your last game. Press a left/right key to change a view and an
up/down key to change displayed/undisplayed of a status display.
SEE ALSO
You can find more about the game on its homepage: http://www.asahi-net.or.jp/~cs8k-cyu/windows/tt_e.html
AUTHOR
This game has been written by Kenta Cho <cs8k-cyu@asahi-net.or.jp>
Torus Trooper(6)