Sponsored Content
Full Discussion: Need to get multiline input
Top Forums Shell Programming and Scripting Need to get multiline input Post 302901616 by annamalaikasi on Wednesday 14th of May 2014 02:33:26 PM
Old 05-14-2014
Need to get multiline input

As per my requirement, I need to get a multiline input. It can be stored in a file, that's not a problem. User will be prompted to enter steps. he should able to enter the steps in multiple lines by pressing enter.

All I know in read command that reads the input till we press enter. Can someone suggest a solution.

Thanks in advance

Last edited by annamalaikasi; 05-14-2014 at 03:38 PM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Multiline Grep

How does one do a search for a multiline regular experssion and output the results to a file. I know this won't work since grep only searches single lines: egrep '<a>.*?</a>' source.xml > output.xml Here are some sample patterns I'd like to match and output to a single file: ... (4 Replies)
Discussion started by: tolmark
4 Replies

2. Shell Programming and Scripting

how to display multiline text

I am writing script that can run on solaris 10, Linux Fedora and windows taht has cybwin installed. I want to display a variable containing muli-line text. using echo command, the variable display all rows in single line i.e. it loses the format. Is there any other command that displays... (2 Replies)
Discussion started by: mmunir
2 Replies

3. 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

4. Shell Programming and Scripting

multiline pattern matching

Hi, I have a file of the following from: Afghanistan gdpcapit|800 Akrotiri Albania gdpcapit|6000 now I want have the gdpcapit value next to the country when there is one like this: Afghanistan 800 gdpcapit|800 Akrotiri Albania 6000 gdpcapit|6000 How do I do this? I've... (4 Replies)
Discussion started by: KarelVH
4 Replies

5. Shell Programming and Scripting

help with multiline variable in csh

My shell is csh and it is required. I have a file like sample.txt ------------------------ a b c d e f g h i ------------------------ I want set the file to a variable and print it out in the same format. I have tried something like this, but not succed. % cat ~/tmp/sample.txt a b c d... (8 Replies)
Discussion started by: anykao
8 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

MultiLine Patterns

Experts, I am novice unix user. At my work, most of our DBA's work on creating DDL's to create new tables in production. At every week we need to validate the scripts (do peer review) and it takes a while and also it is not effective when we have like 150 tables created in the scripts. I am... (3 Replies)
Discussion started by: ysvsr1
3 Replies

8. UNIX for Dummies Questions & Answers

UNIX multiline replace

Hi We have a database export file which needs to be formatted as below InputCreate view ABC1 as Locking ABC1 for Access select * from PQR Create view ABC2 as Locking ABC2 for access select * from PQR Create view ABC3 as Locking ABC3 for Access select * from PQR OutputCreate... (5 Replies)
Discussion started by: sheetal.arun
5 Replies

9. 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
deb-changes(5)							    dpkg suite							    deb-changes(5)

NAME
       deb-changes - Debian changes file format

SYNOPSIS
       filename.changes

DESCRIPTION
       Each Debian upload is composed of a .changes control file, which contains a number of fields.  Each field begins with a tag, such as Source
       or Binary (case insensitive), followed by a colon, and the body of the field.  Fields are delimited only by field tags.	 In  other  words,
       field  text  may  be  multiple  lines in length, but the installation tools will generally join lines when processing the body of the field
       (except in case of the multiline fields Description, Changes, Files, Checksums-Sha1 and Checksums-Sha256, see below).

       The control data might be enclosed in an OpenPGP ASCII Armored signature, as specified in RFC4880.

FIELDS
       Format: format-version (required)
	      The value of this field declares the format version of the file.	The syntax of the field value is a version number with a major and
	      minor  component.  Backward incompatible changes to the format will bump the major version, and backward compatible changes (such as
	      field additions) will bump the minor version.  The current format version is 1.8.

       Date: release-date (required)
	      The date the package was built or last edited.  It must be in the same format as the date in a deb-changelog(5) entry.

	      The value of this field is usually extracted from the debian/changelog file.

       Source: source-name [(source-version)] (required)
	      The name of the source package.  If the source version differs from the binary version, then the source-name will be followed  by  a
	      source-version in parenthesis.  This can happen when the upload is a binary-only non-maintainer upload.

       Binary: binary-package-list (required)
	      This folded field is a space-separated list of binary packages to upload.

       Architecture: arch-list
	      Lists the architectures of the files currently being uploaded.  Common architectures are amd64, armel, i386, etc.  Note that the all
	      value is meant for packages that are architecture independent.  If the source for the package is also being  uploaded,  the  special
	      entry source is also present.  Architecture wildcards must never be present in the list.

       Version: version-string (required)
	      Typically,  this	is the original package's version number in whatever form the program's author uses.  It may also include a Debian
	      revision number (for non-native packages).  The exact format and sorting algorithm are described in deb-version(7).

       Distribution: distributions (required)
	      Lists one or more space-separated distributions where this version should be installed when it is uploaded to the archive.

       Urgency: urgency (recommended)
	      The urgency of the upload.  The currently known values, in increasing order  of  urgency,  are:  low,  medium,  high,  critical  and
	      emergency.

       Maintainer: fullname-email (required)
	      Should  be  in the format "Joe Bloggs <jbloggs@example.org>", and is typically the person who created the package, as opposed to the
	      author of the software that was packaged.

       Changed-By: fullname-email
	      Should be in the format "Joe Bloggs <jbloggs@example.org>", and is typically the person who prepared the package	changes  for  this
	      release.

       Description: (recommended)
	binary-package-name - binary-package-summary
	      This  multiline  field  contains a list of binary package names followed by a space, a dash ('-') and their possibly truncated short
	      descriptions.

       Closes: bug-number-list
	      A space-separated list of bug report numbers that have been resolved with this upload.  The distribution archive software might  use
	      this field to automatically close the referred bug numbers in the distribution bug tracking system.

       Binary-Only: yes
	      This field denotes that the upload is a binary-only non-maintainer build.  It originates from the binary-only=yes key/value from the
	      changelog matadata entry.

       Built-For-Profiles: profile-list
	      This field specifies a whitespace separated list of build profiles that this upload was built with.

       Changes: (required)
	changelog-entries
	      This multiline field contains the concatenated text of all changelog entries that are part of the upload.   To  make  this  a  valid
	      multiline field empty lines are replaced with a single full stop ('.') and all lines are indented by one space character.  The exact
	      content depends on the changelog format.

       Files: (required)
	md5sum size section priority filename
	      This multiline field contains a list of files with an md5sum, size, section and priority for each one.

	      The first line of the field value (the part on the same line as the field name followed by a colon) is always empty.  The content of
	      the field is expressed as continuation lines, one line per file.	Each line consists of space-separated entries describing the file:
	      the md5sum, the file size, the file section, the file priority, and the file name.

	      This field lists all files that make up the upload.  The list of files in this field must match the  list  of  files  in	the  other
	      related Checksums fields.

       Checksums-Sha1: (required)
       Checksums-Sha256: (required)
	checksum size filename
	      These  multiline fields contain a list of files with a checksum and size for each one.  These fields have the same syntax and differ
	      only in the checksum algorithm used: SHA-1 for Checksums-Sha1 and SHA-256 for Checksums-Sha256.

	      The first line of the field value (the part on the same line as the field name followed by a colon) is always empty.  The content of
	      the field is expressed as continuation lines, one line per file.	Each line consists of space-separated entries describing the file:
	      the checksum, the file size, and the file name.

	      These fields list all files that make up the upload.  The list of files in these fields must match the list of files  in	the  Files
	      field and the other related Checksums fields.

BUGS
       The  Files  field  is  inconsistent  with  the  other  Checksums  fields.   The	Change-By and Maintainer fields have confusing names.  The
       Distribution field contains information about what is commonly referred to as a suite.

SEE ALSO
       deb-src-control(5), deb-version(7).

1.19.0.5							    2018-04-16							    deb-changes(5)
All times are GMT -4. The time now is 05:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy