Sponsored Content
Top Forums Shell Programming and Scripting sed, insert data from a file to another? Post 70737 by vgersh99 on Tuesday 3rd of May 2005 01:07:35 PM
Old 05-03-2005
doing 'man sed' yields:
Quote:
Originally Posted by man sed
r rfile
Read the contents of rfile.
Place them on the output before
reading the next input line. If
rfile does not exist or cannot
be read, it is treated as if it
were an empty file, causing no
error condition.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to insert data in database based on text file?

Hi....can you guys help me out in this script?? Below is a text file script....called Bukom.txt and it contains these: BUKOM 20060101 2.5 2.6 2.7 2.8 2.9 2.3 2.1 BUKOM 20060102 2.4 2.5 2.6 2.7 2.7 2.6 2.4 BUKOM 20060103 2.1 ... (9 Replies)
Discussion started by: forevercalz
9 Replies

2. HP-UX

find the position in a file and insert the data there

Hi, I have a EDI data file ARROWTEST of size 18246 characters. And I want to insert some data after 4200 position in the file. How I can find the position 4200 in that file....Please advise. Regards, (5 Replies)
Discussion started by: isingh786
5 Replies

3. UNIX for Dummies Questions & Answers

How to insert new line in the data file using the script

Hi all, I have a test.dat file.In that file i have many lines of data. IN between some lines i want to insert a new line while running the test.ksh. Say for ex: In the dat file i have data like N001 100.00 N001 200.00 N001 300.00 N001 400.00 <== After this line i want to... (2 Replies)
Discussion started by: Sona
2 Replies

4. Shell Programming and Scripting

How to insert data into MYSql database from a text file

Hi, Need to get help from you guys about this issue. I need to insert data into MySql database from a text file which is located in other server. The text file is something look like below: Date | SubscriberNo | Call Duration 20/7/07 | 123456788 | 20 20/7/07 | 123412344 | 30 The... (4 Replies)
Discussion started by: shirleyeow
4 Replies

5. Shell Programming and Scripting

how to insert data into database by reading it from a text file??

Hi....can you guys help me out in this script?? Below is a text file and it contains these: GEF001 000093625 MKL002510 000001 000000 000000 000000 000000 000000 000001 GEF001 000093625 MKL003604 000001 000000 000000 000000 000000 000000 000001 GEF001 000093625 MKL005675 000001... (4 Replies)
Discussion started by: pallavishetty
4 Replies

6. Shell Programming and Scripting

insert a header in a huge data file without using an intermediate file

I have a file with data extracted, and need to insert a header with a constant string, say: H|PayerDataExtract if i use sed, i have to redirect the output to a seperate file like sed ' sed commands' ExtractDataFile.dat > ExtractDataFileWithHeader.dat the same is true for awk and... (10 Replies)
Discussion started by: deepaktanna
10 Replies

7. Shell Programming and Scripting

Can sed be used to insert data at specific column?

I'm trying to use sed to insert data at a specific column, let's say my data looks like this: 0553 1828 0552 1829 0550 1829 0549 1830 0548 1831 what I want is this: timein 0553 timeout 1828 timein 0552 timeout 1829 timein 0550 timeout 1829 timein 0549 timeout 1830 timein 0548... (5 Replies)
Discussion started by: mswartz
5 Replies

8. Emergency UNIX and Linux Support

Insert data into sql queries from a file

Hello friends, I need to insert data from a file to another. I need this to form an sql query file which will consist of 50.000 INSERT INTO sentences. my sql query file will consist of 50.000 times the below line consecutively: insert into subscriber... (6 Replies)
Discussion started by: EAGL€
6 Replies

9. Shell Programming and Scripting

Insert row without deleting previous data using sed

Hello, I want to add a new row to a file to insert data without deleting the previous data there. Example: file a b c d Output a b newtext c (6 Replies)
Discussion started by: joseamck
6 Replies

10. UNIX for Dummies Questions & Answers

How to insert data in a file at last?

Hi Am Using Unix ksh... I have file name called FILE1 Have a content in a FILE as 11/01/2012 12/07/2012 -- -- I have used one variable DATE=12/11/2012 I wants to insert DATE variable value at last line in a file I need Output as cat FILE1 11/01/2012 12/07/2012 -- (2 Replies)
Discussion started by: Venkatesh1
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 10:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy