Sponsored Content
Top Forums Shell Programming and Scripting New line problem of regular expression Post 302301476 by pludi on Friday 27th of March 2009 02:10:26 AM
Old 03-27-2009
Code:
:%s/$/^J/

You'll get the ^J by pressing CTRL+v (to tell vi a special char is following) and then hitting enter.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Regular Expression Problem

Display all of the lines in a file that contain "Raspberry" followed later in the line by the letter "a" I tried: grep Raspberry*a filename that didn't work Anyone know a solution? (1 Reply)
Discussion started by: netmaster
1 Replies

2. Shell Programming and Scripting

Regular expression matching a new line

I have written a script to test some isdn links in my network and I am trying to format the output to be more readable. Each line of the output has a different number of digits as follows... Sitename , spid1 12345678901234 1234567890 1234567 , spid2 1234567890 1234567890 1234567 Sitename , ... (1 Reply)
Discussion started by: drheams
1 Replies

3. Shell Programming and Scripting

Regular Expression problem

Hi guys I've been trying to write a regular expression. If I'm tryin to validate a sequence of characters as follows... AB1-232-623482-743 43/3 where a) any character after the "AB" can be any alphanumeric character b) the " 43/3" part is optional is there a quick neat way for me... (5 Replies)
Discussion started by: djkane
5 Replies

4. UNIX for Dummies Questions & Answers

Regular Expression Problem

this is how my xyz.log file loooks like :- info ( 816): CORE1116: Sun ONE Web Server 6.1SP5 B08/17/2005 22:09 info ( 817): CORE5076: Using from info ( 817): WEB0100: Loading web module in virtual server at info ( 817): WEB0100: Loading web module in virtual server at perl... (12 Replies)
Discussion started by: chris1234
12 Replies

5. Shell Programming and Scripting

Problem with a regular expression

Hello! I'm working with AWK, and i have this code: /<LOOP_TIME>/,/<\/LOOP_TIME>/ I want that match every everything between <LOOP_TIME> and </LOOP_TIME>, but not if the line have a "#" before the tags. Someone can help me? Thanks! (6 Replies)
Discussion started by: claw82
6 Replies

6. Shell Programming and Scripting

Problem with regular expression

Witam, mam oto taki ciąg znaków: 8275610268 + 9012383215 =niepotrzebnytextPotrzebuję w bash'u wyciągnąć obie liczby (mają taką samą liczbę cyfr), zapisać je do osobnych zmiennych, ale coś nie idzie, kombinowałem z grepem, ale nie potrafię skleić tego wyrażenia regularnego, no i potem przypisać do... (7 Replies)
Discussion started by: menda90
7 Replies

7. Shell Programming and Scripting

Regular Expression problem

I have two input files (given below) and to compare each line of the File1 with each line of File2 starts with '>sample1'. If a match occurs and that matched line in the File2 contains another line or sequence of lines starting with "Chr" they have to be displayed in output file with that sample.... (8 Replies)
Discussion started by: hravisankar
8 Replies

8. Shell Programming and Scripting

Regular Expression for line

Hi, I'm trying to extract if the (offset>0 || flags ) from the following line: 90.30.180.90.80 > 90.121.333.308.45133: Flags , seq 14480:15928, ack 1, win 8088, options > 15:59:11.156664 IP (tos 0x0, ttl 20, id 44442, offset 0, flags , proto TCP (6), length 1500) try: offset.(+) ||... (7 Replies)
Discussion started by: ENG_MOHD
7 Replies

9. Programming

Perl: How to read from a file, do regular expression and then replace the found regular expression

Hi all, How am I read a file, find the match regular expression and overwrite to the same files. open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat"; open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat"; while (<DESTINATION_FILE>) { # print... (1 Reply)
Discussion started by: jessy83
1 Replies

10. Shell Programming and Scripting

Extract regular expression and line below

Hi all, I have a large fasta (dna sequence) file. I would like to extract a portion of the header as well as the sequence (line below the header). Input: Output: All accession values (the term I want to preserve, which is the string including and directly following "GL") are different, but I... (8 Replies)
Discussion started by: pathunkathunk
8 Replies
Holotz's Castle Editor(6)												 Holotz's Castle Editor(6)

NAME
holotz-castle-editor - editor for holotz-castle game SYNOPSIS
holotz-castle-editor [-f] [-w] [--fps nn] [-mWWxHHxBPP] [-r RR] [-c CC] [-t theme] <story> <nr> DESCRIPTION
A great mystery is hidden beyond the walls of Holotz's Castle. Will you be able to help Ybelle and Ludar escape alive from the castle? Use the editor to design new levels for this game! USAGE
You can use the following keys while working with the editor: - Page Down: Next level in the story (or a new one if it doesn't exist). - Page Up: Previous level in the story. - 'c': Increase the number of columns from the right. - CTRL-'c': Increase the number of columns from the left - SHIFT-'c': Decrease the number of columns from the right. - SHIFT-CTRL-'c': Decrease the number of columns from the left. - 'r': Increase the number of rows from below. - CTRL-'r': Increase the number of rows from above. - SHIFT-'r': Decrease the number of rows from below. - SHIFT-CTRL-r: Decrease the number of rows from Above. - '+': Increase level time. - '-': Decrease level time. - '1': Select 'floor' tool. - '2': Select 'continuous floor' tool. - '3': Select 'stairs' tool. - '4': Select 'bar' tool. - '5': Select 'breakable floor' tool. - '6': Select 'key' tool. - '7': Select 'rope' tool - '8': Select 'starting character's position' tool. - '9': Select 'exit position' tool. - '0': Select 'enemy' tool. - 's': Save. - CTRL-'q': Quit editor. - Arrow keys: Move around in the map. - 'g': Increase gravity strength. - SHIFT-'g': Decrease gravity strength. - 'x': Increase main character's speed in axis. - SHIFT-'x': Decrease main character's speed in X axis. - 'y': Increase main character's speed in Y axis. - SHIFT-'y': Decrease main character's speed in Y axis. - 'j': Increase the number of cells that the player can jump vertically. - SHIFT-'j': Decrease the number of cells that the player can jump vertically. Other features: - When adding an item to the map, if you press CTRL key it is adjusted to a cell. - To adjust a rope's lenght, you select it and, while still pressing mouse button, press ALT key and drag the mouse vertically until get- ting the desired length. - To adjust a rope's oscillation amplitude, you must select it and, keeping mouse button pressed, press SHIFT key. Real time amplitude is not shown, as it is determined taking into account the distance in vertical to the rope when releasing mouse button. OPTIONS
These command line options are available: -f Full Screen. -w Windowed. --fps nn Run the game at nn frames per second (fps). -mWWxHHxBPP Run in video mode set by WW pixels of width, HH pixels of height and BPP bits per pixel (eg. -m640x480x16). -r RR Crete map with RR rows of height. -c CC Crete map with CC columns of width. -t theme Use theme named 'theme'. <story> <nr> Load level nr of the story called 'story'. AUTHOR
This manual page was written for the Debian GNU/Linux system by Miriam Ruiz <little_miry@yahoo.es> (but may be used by others, of course) Miriam Ruiz 28.01.2005 Holotz's Castle Editor(6)
All times are GMT -4. The time now is 09:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy