Sponsored Content
Top Forums Shell Programming and Scripting Delete all CONSECUTIVE text lines from file shell scripting Post 302977588 by RJSKR28 on Wednesday 20th of July 2016 06:29:27 AM
Old 07-20-2016
No ... After searching i didnt get any idea anywhere.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

search a word and delete consecutive lines below it

Hi all coders, I need a help to process some data. I have this file, 3 09/21/08 03:32:07 started undef mino Oracle nmx004.wwdc.numonyx.co m Message Text : The Oracle session with the PID 1103 has a CPU time consuming of 999.00... (3 Replies)
Discussion started by: vikas027
3 Replies

2. UNIX for Dummies Questions & Answers

Delete vertical lines in an text file

Hi everybody! I need to delete several vertical lines in a huge text file. It should work like the example below. Delete the vertical lines 2 and 8. 123456789 masldfjla afsajfwel sajfljsaf safsarfrl sajfeljwq 1345679 msldfja asajfwl sjfljsf sfsarfl sjfeljq Is there a... (11 Replies)
Discussion started by: relaxo
11 Replies

3. Shell Programming and Scripting

look for two consecutive lines in all text files

How to get (a list of) all the text files in the current directory and subdirectories which has the following two consecutive lines: ctrl_end_date=2009 ctrl_process=EXPIRED OR ctrl_end_date=2010 ctrl_process=EXPIRED i.e. (ctrl_end_date=2009 OR ctrl_end_date=2010) AND ctrl_process=EXPIRED... (6 Replies)
Discussion started by: albertkao
6 Replies

4. Shell Programming and Scripting

looking for a script that will delete lines in a text file

it will grep for a line and then delete these line. how do i begin to write this script if theres no available one? (3 Replies)
Discussion started by: garfish
3 Replies

5. Shell Programming and Scripting

how to delete two consecutive lines from the file

Hi guys I am deleting a unique line from the file and also need to remove the line above it which is NOT unique and servers as a record separator. Here is an example: # 101 803E 823F 8240 # 102 755f 4F2A 4F2B # 290 747D 0926 0927 # 999 8123 813E ... (5 Replies)
Discussion started by: aoussenko
5 Replies

6. Shell Programming and Scripting

How to delete lines from text file?

hi guys, I have very large txt files (200GB) and just want to to delete the first two lines (headers). So far I used sed -i '1,2d' infile.txtbut this command always takes extremely long as it writes all again. Is there a better way to do it (ie just to delete the lines without writing all... (2 Replies)
Discussion started by: TuAd
2 Replies

7. Shell Programming and Scripting

How to delete lines of a text file based on another text file?

I have 2 TXT files with with 8 columns in them(tab separated). First file has 2000 entries whereas 2nd file has 300 entries. The first file has ALL the lines of second file. Now I need to remove those 300 lines (which are in both files) from first file so that first file's line count become... (2 Replies)
Discussion started by: prvnrk
2 Replies

8. UNIX for Dummies Questions & Answers

Delete 26 consecutive lines in a file

I have a text file that is about 90,000 lines long. How would I delete lines 64-89, 152-177, 240-265, 328-353... etc? The sections I would like to delete are 26 lines long and the number of lines between the sections I would like to delete is 62 lines. Thanks very much in advance. (6 Replies)
Discussion started by: MDeBiasse
6 Replies

9. Shell Programming and Scripting

How to get the consecutive last 10 week day date using UNIX ksh shell scripting?

Hi, i am writing a ksh shell script to check the last month end date whether it is falling in last 10 week day date, I am not sure How to use "Mr. Perderabo's date calculator", Could you Please let me know how to use to get my requirement, I tried my own script but duplicate week day and... (5 Replies)
Discussion started by: karthikram
5 Replies

10. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
WEAVE(1)						      General Commands Manual							  WEAVE(1)

NAME
       weave - translate WEB to TeX

SYNOPSIS
       weave [-x] webfile[.web] [changefile[.ch]]

DESCRIPTION
       This manual page is not meant to be exhaustive.	The complete documentation for this version of TeX can be found in the info file or manual
       Web2C: A TeX implementation.

       The weave program is used to create a TeX file for viewing a Web program.  It takes appropriate care of typographic details like page  lay-
       out  and  the use of indentation, italics, boldface, etc., and it supplies extensive cross-index information that it gathers automatically.
       The command line arguments are the same as for tangle except for the option: -x says to omit the index, module name list, and table of con-
       tents  pages.   (A  CONTENTS.tex  file  will still be written when the TeX file is processed, however, unless some macros in webmac.tex are
       redefined.)

       The output TeX file name is formed by adding .tex to the root of the Web file name.

       There are several macros that probably should be redefined by the programmer at the beginning of the Web file.  It is a good  idea  to  set
       	itle  to  the	name  of the program.  And, to cause output of only changed modules, one can say letmaybe=iffalse (usually as the first
       change in the change file).

ENVIRONMENT
       The environment variable WEBINPUTS is used to search for the input files, or the system default if WEBINPUTS is not set.   See  tex(1)  for
       the details of the searching.

FILES
       $TEXMFMAIN/tex/plain/base/webmac.tex
	   TeX macros used by weave output.

SEE ALSO
       tangle(1) for references, authors, and other information.

Web2C 2012							   7 April 2010 							  WEAVE(1)
All times are GMT -4. The time now is 04:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy