Sponsored Content
Full Discussion: Simple? Search replace
Top Forums UNIX for Dummies Questions & Answers Simple? Search replace Post 46416 by Perderabo on Thursday 15th of January 2004 02:34:48 PM
Old 01-15-2004
You must mean shift-J, not control J.

In vi you can do this:
:g/^M/j

But to type the ^M, you need to type cntl-V followed by cntl-M.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Simple Search and Replace - Revisited

I have a ascii file with lines like this: 240|^M\ ^M\^M\ Old Port Marketing order recd $62,664.- to ship 6/22/99^M\ when this record gets loaded into my database, the \ is stored literally and so the user sees carriage return \ (hex 0D 5C) when what i need is carriage return line feed (hex 0D... (1 Reply)
Discussion started by: Brandt
1 Replies

2. UNIX for Dummies Questions & Answers

Too simple to search for

Hey. I'm just getting started with scripting and although i will admit i haven't searched the forum yet, i think it would be a waste of time. It really will be very simple. I want to enter a list of arguments after my script with the last being the filename. (not the first, as this is part of... (3 Replies)
Discussion started by: spudtheimpaler
3 Replies

3. Shell Programming and Scripting

Perl: Search for string on line then search and replace text

Hi All, I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text. An example of 4 lines in my file is: 1. MatchText_randomNumberOfText moreData ReplaceMe moreData 2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Discussion started by: Crypto
4 Replies

4. Shell Programming and Scripting

awk - replace number of string length from search and replace for a serialized array

Hello, I really would appreciate some help with a bash script for some string manipulation on an SQL dump: I'd like to be able to rename "sites/WHATEVER/files" to "sites/SOMETHINGELSE/files" within the sql dump. This is quite easy with sed: sed -e... (1 Reply)
Discussion started by: otrotipo
1 Replies

5. UNIX for Dummies Questions & Answers

Simple search pattern help

Hi I need to define a pattern that will match an open square bracket, a series of numbers fro 1 to 4 digits in length and a close square bracket. Examples of the numbers I will need to find are: or or or I am using BBEdit to search, and BBEdit uses the standard GREP search... (1 Reply)
Discussion started by: alisamii
1 Replies

6. Shell Programming and Scripting

Simple (not for me) string search script

hi there, I am a complete newb to bash but am going to try and make a script to help me seach text files for strings of interest, any help that one of you gurus could pass on will be greatly received!! I want to write something like: in "text1.txt" find "string1" and copy out the line... (7 Replies)
Discussion started by: jumbo999
7 Replies

7. Shell Programming and Scripting

How to do a simple awk search?

Hello I am trying to do global search on access log files for a date and for either 'Error|error' string ls -lrt *access* | grep "Sep 23" | awk '{print $9}'|xargs awk '/23\/Sep\/2011/ && /Error/ || /error' Above matches All lines with 'error' as well unfortunately. Is there a... (6 Replies)
Discussion started by: delphys
6 Replies

8. Shell Programming and Scripting

Simple awk search problem

Hello; we have : awk '/reg_exp/,0/ prints every line after the first occurrence of "reg_exp" But if I want to print rest of the lines AFTER the last occurrence of "reg_exp", how would I do it ?? Tried : awk ' ! (/reg_exp/,0)' But it errored... Thank you for any... (5 Replies)
Discussion started by: delphys
5 Replies

9. Shell Programming and Scripting

Nested search in a file and replace the inner search

Hi Team, I am new to unix, please help me in this. I have a file named properties. The content of the file is : ##Mobile props east.url=https://qa.east.corp.com/prop/end west.url=https://qa.west.corp.com/prop/end south.url=https://qa.south.corp.com/prop/end... (2 Replies)
Discussion started by: tolearn
2 Replies
GLRAD(1)						      General Commands Manual							  GLRAD(1)

NAME
glrad - render a RADIANCE scene using OpenGL SYNOPSIS
glrad [ -w ][ -b ][ -s ][ -S ][ -v view ] rfile [ VAR=value .. ] DESCRIPTION
Glrad renders a Radiance scene description in OpenGL. Its syntax and behavior is similar to rad(1) with the -o option, where the output device is assumed to be an X11 server with GLX extensions. The -w option turns off warnings. The -s option tells glrad to run rad silently, not echoing oconv(1) command. The -b option turns off back face visibility (i.e., enables back face culling). This is equivalent to the -bv option of rpict(1) and rvu(1). The -S option turns on full-screen stereo for displays that support it. (Be sure to run /usr/gfx/setmon(1) or its equivalent to set STR_TOP or STR_BOT, first.) The -v option may be used to specify a starting view, either by symbolic name as entered in the view assignments in rfile, or by a complete view specification, enclosed in quotes. If no view is specified, then the first standard view from rfile is used to start. Variables permitted in rfile are described in the rad manual page. Additional or overriding assignments may be given on the command line following rfile. The view is controlled via the mouse and simple one-character commands, listed below: (mouse) Modify the current view. The mouse is used to control the current view in the following ways: CONTROL MOUSE ACTION (none) left Move forward towards cursor position (none) right Move backward away from cursor position (none) middle Rotate in place (usually safe) shift left Orbit left around cursor position shift right Orbit right around cursor position shift middle Orbit skyward cntl middle Orbit earthward For all movements but rotating in place, the cursor must be placed over some bit of visible geometry, otherwise the program has no reference point from which to work. It is best to just experiment with these controls until you learn to fly safely in your model. And if you run into trouble, the 'l' command is very useful. (See below.) '+' Zoom in on the current cursor position. (Beware of repeating keys that go faster than the display updates.) '-' Zoom out from the current cursor position. 'l' Return to the last saved view. Each time a new command changes the current view, the last view is saved, and may be recalled with this command. Multiple uses of the same command (e.g., rotation, zoom) will save only the view before the first such com- mand. This way, it is easy to get back to where you were before a sequence of view changes. 'h' Fix the head height. All mouse-controlled view motions will be adjusted so that the head height does not change (where vertical is determined by the current view up vector). 'H' Release the head height, allowing it to change again during mouse-controlled movements. 'v' Print the current view parameters to the standard output. This is useful for finding out where you are, or for saving specific views in a keyframe file for animations or returning to later. 'V' Append the current view to the original rfile. This view will be unnamed, but can be referred to by number or the user may add a name later with a text editor. The current view number becomes the last standard view. (See the 'n' and 'p' commands, below.) 'n' Go to the next standard view stored in rfile. If the last view is currently displayed, then cycle to the first one. 'p' Go to the previous standard view stored in rfile. If the first view is currently displayed, then cycle to the last one. 'q' Quit glrad. This is the normal way to exit the program. AUTHOR
Greg Ward Larson BUGS
It would be nice if glrad set the appropriate video format for stereo viewing automatically, but the process is different on different sys- tems and there is no single, sure-fire way to do it for all systems. On systems that do not support stereo extensions, the program may be compiled with the -DNOSTEREO option, which will avoid undefined symbol errors. SEE ALSO
chmod(1), getinfo(1), ls(1), objview(1), oconv(1), ps(1), rad(1), ranimate(1), rhcopy(1), rholo(1), rpict(1), rtrace(1), rvu(1), setmon(1) RADIANCE
6/10/98 GLRAD(1)
All times are GMT -4. The time now is 04:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy