Sponsored Content
Top Forums Shell Programming and Scripting How to edit file sections that cross multiple lines? Post 302386619 by Narnie on Wednesday 13th of January 2010 01:15:12 AM
Old 01-13-2010
Quote:
Originally Posted by anchal_khare
can you please post a sample o/p ?
Please forgive me being abbreviation challenged here, but what is mean by a sample o/p? What does the o/p stand for? Smilie

Thanks,
Narnie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Handle Configuration File with same name of Parameter in multiple Sections

Hi I have a config file with multiple section and a parameter with the same name in each section. I need to read each parameter for distinct section. Parameter = 1 .... Parameter = 2 .... Parameter = 4 .... Tried this: grep -m1 '^*ProcessorsNumber' ServiceBrokerFramework.cfg |... (7 Replies)
Discussion started by: potro
7 Replies

2. UNIX for Advanced & Expert Users

extract multiple sections of a file

I have a file that I need to parse multiple sections from the file. The file contains multiple lines that start with ST (Abunch of data) Then the file contains multiple lines that start with SE (Abunch of data) SE*30*0001 ... (1 Reply)
Discussion started by: rgentis
1 Replies

3. Shell Programming and Scripting

extract multiple sections of file

I have a file that I need to parse multiple sections from the file. The file contains multiple lines that start with ST (Abunch of data) Then the file contains multiple lines that start with SE (Abunch of data) SE*30*0001 ST*810*0002 I need all of the lines between and including these.... (6 Replies)
Discussion started by: rgentis
6 Replies

4. Shell Programming and Scripting

Edit number of lines in a file to single line

Greetings, I have a file: hostnames.txt which has - # cat hostnames.txt machine1 machine2 I need the output to be saved to a variable as: HOSTNAMELIST=machine1,machine2 Please advise. Thanks, Chiru (3 Replies)
Discussion started by: chiru_h
3 Replies

5. Shell Programming and Scripting

swaping sections of lines

Is it possible to do this with sed? Go from this: 958211 XXYYXXYYXX file1 file2 file3 958897 XXYYXXYYXX file1 file2 To this: file1 file2 file3 XXYYXXYYXX 958211 file1 file2 XXYYXXYYXX 958897 The only thing consistant is XXYYXXYYXX. The numbers and files vary in length. I have seen I... (5 Replies)
Discussion started by: crowman
5 Replies

6. Shell Programming and Scripting

How to get awk to edit in place and join all lines in text file

Hi, I lack the utter fundamentals on how to craft an awk script. I have hundreds of text files that were mangled by .doc format so all the lines are broken up so I need to join all of the lines of text into a single line. Normally I use vim command "ggVGJ" to join all lines but with so many... (3 Replies)
Discussion started by: n00ti
3 Replies

7. Shell Programming and Scripting

Need Help to Edit multiple column of a file

Hello Team, I want to know if there is any one liner command , using which I can edit multiple column of a file. input file input.txt (comma separated), taran, 12.45, uttam, 23.40, babay karan, 12.45, raju, 11.40, rahulg I want to update, 2nd and 4th column, but want all those column... (8 Replies)
Discussion started by: Uttam Maji
8 Replies

8. Shell Programming and Scripting

Removing multiple lines from input file, if multiple lines match a pattern.

GM, I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed. I am assuming that sed, awk or even perl could do what I need. I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
Discussion started by: jxfish2
7 Replies

9. Shell Programming and Scripting

Edit and replace the multiple values in a file in one iteration

Hi All, I am preserving OLD and NEW values and want to replace the values in one go instead of using multiple sed and mv commands. Please help. echo "\nEnter the new qStart time '${CODE}' - (Hit Enter for No Change): \c" read NEW echo "\nEnter the new qStop time '${CODE}' - (Hit Enter for... (2 Replies)
Discussion started by: sdosanjh
2 Replies

10. Shell Programming and Scripting

Edit lines in file preserving part of it

Hello: I have the following HTML table: <table> <thead> <tr> <th>Code</th> <th>Percentage</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>30%</td> </tr> <tr> <td>2</td> ... (3 Replies)
Discussion started by: Cacializ
3 Replies
libquvi(3)							  libquvi manual							libquvi(3)

NAME
libquvi - Overview of query media library DESCRIPTION
libquvi is a cross-platform library for parsing flash media stream URLs with C API. The term "quvi" is a shorthand for "query video". API documentation <http://quvi.sourceforge.net/doc/> Motivation libquvi originates from the idea of allowing users to view the videos without having to install or use flash. It is a "workaround", not an "alternative" to flash. See also: <http://en.wikipedia.org/wiki/Adobe_Flash#Performance> <http://en.wikipedia.org/wiki/Adobe_Flash#Flash_client_security> <http://en.wikipedia.org/wiki/Adobe_Flash#Alternatives_to_Flash> ENVIRONMENT
LIBQUVI_SCRIPTSDIR Path to the libquvi-scripts directory. This overrides the libquvi default search paths for the scripts. See also the tutorial in the "API documentation". LIBQUVI_SHOW_SCANDIR If set, libquvi prints the lua script search paths to the stderr. LIBQUVI_SHOW_SCRIPT If set, the lua scripts found by libquvi are printed to the stderr. WWW
Home : <http://quvi.sourceforge.net> gitweb: <http://repo.or.cz/w/libquvi.git> LICENSE
libquvi is free software, licensed under the LGPLv2.1+. The lua scripts that libquvi uses are considered as programs and using the lua scripts is linking. SEE ALSO
"libquvi-scripts(7)", quvi(1) AUTHOR
Toni Gundogdu <legatvs at sign gmail com> Thanks to all those who have contributed to the project by sending patches, reporting bugs and writing feedback. You know who you are. v0.4.1 2011-09-23 libquvi(3)
All times are GMT -4. The time now is 04:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy