Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to search a text in file and retrieve required lines following it with UNIX command? Post 303011887 by RudiC on Thursday 25th of January 2018 04:38:28 AM
Old 01-25-2018
And how would you supply the info "after the match which is specified by me". Please give the entire picture, don't have people in here worm it out of you bit by bit.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

search and retrieve previous line in file

I've got a file with the following layout: #STMP FSgroup filename /filesysname1 filestatus 2 #STMP FSstatus filename /filesysname1 ratio 30 #STMP FSgroup filename ... (2 Replies)
Discussion started by: paulsew
2 Replies

2. Shell Programming and Scripting

how to retrieve required specific info from the file

Hi I have a file which consists of a number in the square brackets, followed by the blank line, then several lines which describe this number. This pattern is repeated several thousands time. The number in the brackets and the decription of it is unique. For example: ASRVSERV=1241GD;... (2 Replies)
Discussion started by: aoussenko
2 Replies

3. Shell Programming and Scripting

Getting required fields from a text file in UNIX

My data is something like as shown below. Out of this i want the details of alarms (ex: 1947147711,1947147081......) and the fields( ex :sw=tacmwafabb9:shelf=1:slot=5-2:pport=2) Once i have these details separated, i want the count of these excluding the duplicates. What is the best possible way... (7 Replies)
Discussion started by: rdhanek
7 Replies

4. Shell Programming and Scripting

Getting required fields from a test file in required fromat in unix

My data is something like shown below. date1 date2 aaa bbbb ccccc date3 date4 dddd eeeeeee ffffffffff ggggg hh I want the output like this date1date2 aaa eeeeee I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
7 Replies

5. Shell Programming and Scripting

search string in a file and retrieve 10 lines including string line

Hi Guys, I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same. can anyone of you please let me know how to go about it ? (8 Replies)
Discussion started by: sukrish
8 Replies

6. UNIX for Dummies Questions & Answers

Unix search a string in the text file

File name : Sample.txt Actually i would like to read <schema>Oracle<schema> string from input file and return only once database as my output. Please advise me. Moved to appropriate forum. (1 Reply)
Discussion started by: balajikalai
1 Replies

7. Shell Programming and Scripting

How can i run sql queries from UNIX shell script and retrieve data into text docs of UNIX?

Please share the doc asap as very urgently required. (1 Reply)
Discussion started by: 24ajay
1 Replies

8. Shell Programming and Scripting

Read in search strings from text file, search for string in second text file and output to CSV

Hi guys, I have a text file named file1.txt that is formatted like this: 001 , ID , 20000 002 , Name , Brandon 003 , Phone_Number , 616-234-1999 004 , SSNumber , 234-23-234 005 , Model , Toyota 007 , Engine ,V8 008 , GPS , OFF and I have file2.txt formatted like this: ... (2 Replies)
Discussion started by: An0mander
2 Replies

9. UNIX for Beginners Questions & Answers

awk command to retrieve record 23 and 89 from UNIX file

Hi Everyone, I am looking for awk command to retrieve only the record number 23 and record number 89 from a unix file? Please let me know what is the awk command for this? Regards Rakesh (1 Reply)
Discussion started by: rakeshp
1 Replies

10. Homework & Coursework Questions

awk command to retrieve record 23 and 89 from UNIX file

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am looking for awk command to retrieve only the record number 23 and record number 89 from a unix file?... (6 Replies)
Discussion started by: rakeshp
6 Replies
RA_T16(1)						      General Commands Manual							 RA_T16(1)

NAME
ra_t16 - convert RADIANCE picture to/from Targa 16 or 24-bit image file SYNOPSIS
ra_t16 [ -2 ][ -3 ][ -g gamma ][ -e +/-stops ] [ input [ output ] ] ra_t16 -r [ -g gamma ][ -e +/-stops ] [ input [ output ] ] DESCRIPTION
Ra_t16 converts between RADIANCE and Targa 16-bit or 24-bit RGB image files (type 2 in Targa's documentation). In the default mode, a RADIANCE picture is converted to an RGB file of the same horizontal and vertical dimensions with 16-bits per pixel. The -3 option tells the program to produce a 24-bit image file instead. The -g option specifies the exponent used in gamma correction; the default value is 2.2. An exponent of 1.0 turns gamma correction off. The -e option specifies an exposure compensation in f-stops (powers of two). Only integer stops are allowed, for efficiency. The -r option invokes a reverse conversion, from a 16-bit or 24-bit Targa file to a RADIANCE picture. The determination of depth is made automatically on reverse translation, so the -2 and -3 options are not necessary. If the out- put file is missing, the standard output is used. AUTHORS
Greg Ward BUGS
Run-length encoded files can be read but not written with this program. SEE ALSO
pfilt(1), ra_bmp(1), ra_bn(1), ra_ppm(1), ra_pr(1), ra_pr24(1), ra_t8(1), ra_tiff(1), ximage(1) RADIANCE
11/15/93 RA_T16(1)
All times are GMT -4. The time now is 06:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy