Sponsored Content
Full Discussion: sed multiline problem
Top Forums Shell Programming and Scripting sed multiline problem Post 303019302 by ctac_ on Tuesday 26th of June 2018 02:51:10 PM
Old 06-26-2018
As you can see, you get
cr lf
so
/Operator$/
never match
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multiline replace problem

I have a data of the form 0.0117843924 0. 0. 0. 0. 0.011036017 0. 0. 0. 0. 0.0103351669 0. 0. 0. 0. 4839.41211 0. 0. 0. 0. 4532.08203 0. 0. 0. 0. I would like to insert a couple of blank lines before the 4839 line, every time it appears. The numbers in the... (2 Replies)
Discussion started by: mathis
2 Replies

2. Shell Programming and Scripting

delete multiline string from file using sed.

Hi, I have file which has the following content... GOOD MORNING **********WARNING********** when it kicks from the kickstart, sshd daemon should start at last. (WHEN KICKING ITSELF, NOT AFTER KICKING). /etc/rc3.d/S55sshd ( run level specification for sshd is 55, now I would want to... (4 Replies)
Discussion started by: skmdu
4 Replies

3. Shell Programming and Scripting

Multiline pattern search using sed or awk

Hi friends, Could you please help me to resolve the below issue. Input file :- <Node> <username>abc</username> <password>ABC</password> <Node> <Node> <username>xyz</username> <password>XYZ</password> <Node> <Node> <username>mnp</username> ... (3 Replies)
Discussion started by: haiksuresh
3 Replies

4. Shell Programming and Scripting

sed multiline substitution if a condition holds

Hi. I have the following text file (more precisely a Matlab script): dummy1 = 5; varx = 'false'; dummy2 = 6; % ... some general commands % ... dummy3 = 7; vary = 'option1'; dummy4 = 8; Using sed I want to do the following action: IF varx = 'false' vary='NEW_VALUE_1'... (11 Replies)
Discussion started by: plsrn
11 Replies

5. UNIX for Dummies Questions & Answers

sed multiline pattern match

How can I write a script that takes a cisco config file and outputs every occurrence of two, or more, pattern matches through the whole config file? For example, out of a config file, i want to print out every line with interface, description and ip address through the whole file, and disregard... (3 Replies)
Discussion started by: knownasthatguy
3 Replies

6. UNIX for Dummies Questions & Answers

Need Multiline sed help!!

Hey everyone, I'm new to sed and I need to create a script for inserting one line of code at the beginning of every method in a Xcode project (over 6,000 methods). Each method Structure is (+ or -) (Various declarations-- could span multiple lines) ({) I've tried for days, any guidance would be... (2 Replies)
Discussion started by: jimmyz
2 Replies

7. Shell Programming and Scripting

sed to extract a multiline subject from a mail message

I'm trying to extract a subject from a mail message but my subject example has 2 lines. How can I manage to extract it and write a string at the end of it? Consider this example: From: test@domain.com Subject: Re: U =?ISO-8859-1?Q?qu=EA=3F!=3F!=3F!!_wtff_=E7=E3o_=ED=F3?= ... (6 Replies)
Discussion started by: twisterbr
6 Replies

8. Shell Programming and Scripting

Multiline sed

Hi guys, I am fairly comfortable with using the sed command if the string to be replaced is all on a single line. I was wondering is it possible to use sed command in a multiline way ? Say for example I have the below string on 2 different lines: { "key": "brandNameA", ... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies

9. Shell Programming and Scripting

[sed]: Substitute a string with a multiline value

Dear all, I try to replace a string of characters in a file (MyFile.txt) by a multiline value of the variable "Myvar": $ cat MyFile.txt DESCRIPTION '@TargetTable SCHEMA' ( @InputFlowDef ); $ The content of Myvar: $ echo "$Myvar" col1 , col2 , col3 $ (4 Replies)
Discussion started by: dae
4 Replies
HAMEXAM(1)						      General Commands Manual							HAMEXAM(1)

NAME fccexam - Study guide for USA FCC commercial radio license examinations.
SYNOPSIS
fccexam [option] DESCRIPTION
fccexam presents questions in random order from the selected question pool, and terminates when all questions have been answered correctly. The session may be interrupted with ^C, and resumed later. Some questions refer to diagrams. The diagrams for the selected question pool are displayed in a separate window using eog(1). Licenses are issued by the Federal Communications Commission (FCC), but examinations are administered by COLEM examiners. See http://wire- less.fcc.gov/commoperators/index.htm?job=home for information regarding USA commercial radio licenses. OPTIONS
If no pool is specified, usage, version, and help information is displayed. To initialize the question pool, one of the element numbers may be specified: 1 Element 1, Basic radio law and operating practice. 3 Element 3, General Radiotelephone; Electronic fundamentals and techniques required to adjust, repair, and maintain radio transmit- ters and receivers. 5 Element 5, Radiotelegraph operating procedures and practices. 6 Element 6, Advanced technical, legal, and other matters applicable to the operation of all classes of radiotelegraph stations. 7 Element 7, GMDSS Radio Operating Practices. 7R Element 7R, Restricted GMDSS Radio Operating Practices. 8 Element 8, Ship Radar Techniques. 9 Element 9, GMDSS Radio Maintenance Practices and Procedures. The following abbreviations may be used to select multiple elements: T1 First Class Radiotelegraph: elements 1, 5, 6. T2 Second Class Radiotelegraph: elements 1, 5, 6. T3 Third Class Radiotelegraph: elements 1, 5. GROL General Radiotelephone Operator License: elements 1, 3. GROL+ General Radiotelephone Operator License + Radar: elements 1, 3, 8. MROP Marine Radio Operator Permit: element 1. GMDSS Global Maritime Distress Safety System Radio Operator: elements 1, 7. GMDSS+ GMDSS Radio Maintainer + Radar: elements 1, 7, 8, 9. RGMDSS Restricted GMDSS Radio Operator: elements 1, 7R. q The question pool is selected interactively. This is needed when starting the application from an icon. FILES
A directory ~/.fccexam is created to hold the names of the questions which remain to be answered correctly. SEE ALSO
For more information regarding licensing, ref. http://wireless.fcc.gov/commoperators/index.htm?job=home For information regarding amateur radio licensing (ham radio), see the package hamexam. COPYRIGHT
fccexam is Copyright (c) 2011-2012 John Nogatch <jnogatch@yahoo.com>. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. BUGS
The question pools, and number of questions required, are sometimes modified; ref. http://wireless.fcc.gov/commopera- tors/index.htm?job=question_pools Radiotelegraph Operator licenses also require Morse code proficiency elements, which are not provided by fccexam. fccexam does not automatically update the question pools from the FCC Web site. HAMEXAM(1)
All times are GMT -4. The time now is 09:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy