Sponsored Content
Top Forums Shell Programming and Scripting awk search and replace and overwrite file Post 302384539 by JamesByars on Tuesday 5th of January 2010 04:17:48 PM
Old 01-05-2010
brilliant, thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Search and replace using awk

Dear All, I want to search and replace the text in file using awk. but facing hard luck in that. Please help me out!!!! > grep Abc.De.ync.rate /tmp/sdosanjh.txt Abc.De.ync.rate 6 write Now, I want to replace the "6" with value say "2". I... (5 Replies)
Discussion started by: sdosanjh
5 Replies

2. 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

3. Shell Programming and Scripting

Search and Replace using awk

Hi, I am really confused with this problem that I am facing . I have a file that contains entries in the form : option1 Value1 option2 Value2 option3 Value3 option4 Value4 . . . I want to search for the keyword "option4" and replace "value4" by another value, say "value5". My main... (2 Replies)
Discussion started by: harry0812
2 Replies

4. Shell Programming and Scripting

Search and replace in xml file using awk..

Hi All, I have xml file,i am tring to use awk to search pattern as: <Password>x</Password> and Replace with: <Password>y</Password> please any one can help to solve this using awk and awk only. (4 Replies)
Discussion started by: islam2666
4 Replies

5. Shell Programming and Scripting

search and replace with AWK

Suchen und Ersetzen mit AWK hello, i'm not good in scripting and asking for your help. With this script i change some text parts in diffent datafiles. It works without problems, but i need to get some informations about what changes in wich datafiles happend. This could be in character of a... (3 Replies)
Discussion started by: ruffi
3 Replies

6. Shell Programming and Scripting

Find ,replace and overwrite from master and sub dir

Hello experts, Can someone please help me handling the below situation. I have files in multiple directories as below. /data/input/A.txt /data/input/a1.txt /data/input/adhoc/b.txt /data/input/adhoc/b1.txt /data/input/adhoc/temp/c.txt /data/input/adhoc/temp/d.txt where some of... (3 Replies)
Discussion started by: pasupuleti81
3 Replies

7. Shell Programming and Scripting

text file search and replace with awk

hello all greeting for the day i have a text file as the following text.xml abcd<FIELD>123.456</FIELD>efgh i need to replace the value between <FIELD> and </FIELD> by using awk command. please throw some light on this. thank you very very much Erik (5 Replies)
Discussion started by: erikshek
5 Replies

8. Shell Programming and Scripting

awk search/replace specific field, using variables for regexp & subsitution then overwrite file

Hello, I'm trying the solve the following problem. I have a file which I intend to use as a csv called master.csv The columns are separated by commas. I want to change the text on a specific row in either column 3,4,5 or 6 from xxx to yyy depending upon if column 1 matches a specified pattern.... (3 Replies)
Discussion started by: cyphex
3 Replies

9. Shell Programming and Scripting

Search and replace from file in awk using a 16 bit text file

Hello, Some time ago a helpful awk file was provided on the forum which I give below: NR==FNR{A=$0;next}{for(j in A){split(A,P,"=");for(i=1;i<=NF;i++){if($i==P){$i=P}}}}1 While it works beautifully on English and Latin characters i.e. within the ASCII range of 127, the moment a character beyond... (6 Replies)
Discussion started by: gimley
6 Replies

10. Shell Programming and Scripting

Search and replace with awk

Hi Shell Tigers, I am trying to acheive search and replace strings within a setup file. Help much appreciated. test.setup ORACLE_HOME=/oracle/product/11.0.0/home01 PATH1=/perm_loc/3222/FTP/cfg1 PATH2=/perm_loc/3222/FTP/cfg2/bin PATH3=/perm_loc/3222/FTP/cfg3/bin So... (3 Replies)
Discussion started by: jville
3 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:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy