Sponsored Content
Full Discussion: sed regex
Top Forums UNIX for Dummies Questions & Answers sed regex Post 14461 by Shakey21 on Thursday 31st of January 2002 08:16:31 PM
Old 01-31-2002
i didn't know that

but thats even better than brilliant

Thanks!!
Shakey21
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using sed and regex to reverse order???

so i have been trying to learn how to manipulate text on my own and have gotten stumped... let's say i have a text file that says (highly simplified): people ordinary How would swap the order of the words.. I know i need to use sed and some kind of back reference but cannot make it... (2 Replies)
Discussion started by: urtherhoda
2 Replies

2. Shell Programming and Scripting

Sed and regex help needed

Hi all, I'm writing a script that replaces a value in a file. The file is formatted as follows: So, for this example, I'd like to replace the value for param_two. The value for param_two can be a one, or two-digit number. It replaces the value in file.cfg, and directs the... (9 Replies)
Discussion started by: marknu1
9 Replies

3. Shell Programming and Scripting

sed - using regex and | need help

From my understanding when using regex1|regex2 the matching process tries each alternative in turn, from left to right, and the first one that succeeds is used. When im trying to extract the name from those examples: A) name.can.be.different.20.03.2009.boom B)... (2 Replies)
Discussion started by: TehOne
2 Replies

4. Shell Programming and Scripting

Converting perl regex to sed regex

I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly: if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies

5. UNIX for Advanced & Expert Users

Sed regex problem

Hi, I tried to extract the time from `date` with sed. (I know it works with `date +%H:%M:%S` as well) I got three solutions of which just one worked. I thought "+" should repeat the previous expression 1 or more times and {n} should repeat the previous expression n times. $ date Thu... (9 Replies)
Discussion started by: thiuda
9 Replies

6. Shell Programming and Scripting

Use regex in replacement string in SED

Hi, I need to use the regex in the replacement string in SED command. something like sed -e ' s/\(^\{5\}\).\{150\}\(.*\)$/\10\{30\}1\{30\}A\{60\}B\{30\}\2/' abc which means for all the lines in file abc that starts with 5 characters, I need to replace character 6-151... (6 Replies)
Discussion started by: snowline84
6 Replies

7. Shell Programming and Scripting

Question on awk/sed/regex

I plan to do something like this in awk that's embedded in a shell script. I have extracted a text file using awk and the output is before example: <USDOLLARS|xxx> I want to use get rid of the starting "<" and anything after the pipe "|" after example: USDOLLARS How do I do that?? I... (8 Replies)
Discussion started by: deadyetagain
8 Replies

8. Shell Programming and Scripting

Help with sed substitution / regex

Hi all, please can anyone show me how to use sed and regular expressions to achieve the following. If a line contains a capital A followed by exactly 5 or 6 characters followed by an angled bracket then insert an asterix before the angled bracket. So: XCONFIGA12345<X Becomes: ... (5 Replies)
Discussion started by: Jedimark
5 Replies

9. Shell Programming and Scripting

Multiple regex in sed

I am using the following sed script to remove new lines (\r\n and \n), except from lines starting with >: sed -i ':a /^>/!N;s/\r\n\(\)/\1/;s/\n\(\)/\1/;ta' Is there a way to include both \r\n and \n in one regex to avoid the second substitute script (s/\n\(\)/\1/)? (4 Replies)
Discussion started by: Xterra
4 Replies

10. Shell Programming and Scripting

Regex with sed

hi i would like to say "DATABASENAME=" to "TABLESNAME=" remove "," and press enter myconfig file thanks (1 Reply)
Discussion started by: mnnn
1 Replies
CELESTIA(1)						      General Commands Manual						       CELESTIA(1)

NAME
celestia - A real-time visual space simulation SYNOPSIS
celestia [options] DESCRIPTION
This manual page documents briefly celestia, a 3D space simulator. Celestia is a real-time visual simulation of space in our local region of the universe. Choose a point within about 1000 light years of Earth, and Celestia will show you an approximation of how it would appear to your eyes were you actually there. Some of what Celestia shows is necessarily hypothetical--the farther away from Earth you get, the less real data there is and the more guesswork is involved. Thus Celestia supplements observational data with good guesses based on models of stellar and planetary processes. Celestia is unique in its ability to allow you to navigate at an immense range of scales. Orbit a couple kilometers above the surface of a tiny, irregular asteroid, then head off toward Jupiter, watching it grow from a bright point of light into a looming sphere filling your field of vision. Leave our solar system entirely and observe the sun as it fades from a brilliant disk to a bright star, disappearing almost entirely as you head off toward the Upsilon Andromeda system to orbit around its innermost giant planet. OVERVIEW
Celestia will start up in a window, display a welcome message and some information about your target (top left corner), your speed, and the current time (Universal Time, so it'll probably be a few hours off from your computer's clock.) In Celestia, you'll generally have an object selected; currently, it's Eros, but it could also be a star, planet, spacecraft, or galaxy. The simplest way to select an object is to click on it. Try clicking on a star to select it. Right drag the mouse to orbit arround the selected target. Left dragging the mouse changes your orientation too, but the camera rotates about its center instead of rotating around the target. Rolling the mouse wheel will change your distance to the space station--you can move light years away, then roll the wheel in the opposite direction to get back to your starting location. If your mouse lacks a wheel, you can use the Home and End keys instead. Press G and you'll zoom through space toward the selected star. If you press G again, you'll approach the star even closer. Press H to select our Sun, and then G to go back to our solar system. You'll find yourself half a light year away from the Sun, which looks merely like a bright star at this range. Press G three more times to get within about 30 AU of the Sun and you will be to see a few planets become visible near the Sun. USAGE
Mouse functions: Left drag orient camera Right drag orbit the selected object Mouse wheel, Middle drag adjust distance to selection left click select target, double click to center Keyboard commands: Navigation H Select the sun (Home) C Center on selected object G Goto selected object F Follow selected object Y Orbit the selected object at a rate synced to its rotation ESC Cancel motion Free movement HOME Move closer to object END Move farther from object F1 Stop F2 Set velocity to 1 km/s F3 Set velocity to 1,000 km/s F4 Set velocity to 1,000,000 km/s F5 Set velocity to 1 AU/s F6 Set velocity to 1 ly/s A Increase velocity by 10x Z Decrease velocity by 10x Q Reverse direction X Set movement direction toward center of screen Time Space stop time L Time 10x faster K Time 10x slower J Reverse time Options U Toggle galaxy rendering N Toggle planet and moon labels O Toggle planet orbits V Toggle HUD Text I Toggle planet atmospheres (cloud textures) W Toggle wireframe mode / Toggle constellation diagrams = Toggle constellation labels ; Toggle earth-based equatorial coordinate sphere B Toggle star labels P Toggle per-pixel lighting (if supported) [ Decrease limiting magnitude (fewer stars visible) ] Increase limiting magnitude (more stars visible) { Decrease ambient illumination } Increase ambient illumination , Narrow field of view . Widen field of view Other D Run demo ` Show frames rendered per second It's possible to choose a star or planet by name: press Enter and type in the name, and pressing Enter again. You can use common names, or Bayer designations and HD catalog numbers for stars. Bayer and Flamsteed designations need to be entered like "Upsilon And" and "51 Peg". The constellation must be given as a three letter abbreviation and the full Greek letter name spelled out. HD catalog numbers must be entered with a space between HD and the number. OPTIONS
The glut based version accepts the usual X Window System specific options, namely: -display DISPLAY Specify the X server to connect to. If not specified, the value of the DISPLAY environment variable is used. -geometry WxH+X+Y Determines where window's should be created on the screen. The parameter following -geometry should be formatted as a standard X geometry specification. The effect of using this option is to change the GLUT initial size and initial position the same as if glutInitWindowSize or glutInitWindowPosition were called directly. -iconic Requests all top-level windows be created in an iconic state. -indirect Force the use of indirect OpenGL rendering contexts. -direct Force the use of direct OpenGL rendering contexts (not all GLX implementations support direct rendering contexts). A fatal error is generated if direct rendering is not supported by the OpenGL implementation. If neither -indirect or -direct are used to force a particular behavior, GLUT will attempt to use direct rendering if possible and otherwise fallback to indirect rendering. -gldebug After processing callbacks and/or events, check if there are any OpenGL errors by calling glGetError. If an error is reported, print out a warning by looking up the error code with gluErrorString. Using this option is helpful in detecting OpenGL run-time errors. -sync Enable synchronous X protocol transactions. This option makes it easier to track down potential X protocol errors. AUTHOR
Celestia has been written by Chris Laurel <claurel@www.shatters.net> and it's available under the terms and conditions of the GNU General Public LIcense from http://celestia.sf.net/ May 23, 2001 CELESTIA(1)
All times are GMT -4. The time now is 09:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy