Sponsored Content
Top Forums Programming concatinate all lines from second line to end of line in perl Post 302559675 by sujit_singh on Wednesday 28th of September 2011 12:53:42 AM
Old 09-28-2011
thanks. but it dose not print next lines of input file, it concatenated form this code extract first line only. I wish to get result as


~dta.yunm
shhshsgggssssjsksjssggsjshsjsjssssshshshhshshshs


from input file

~dta.yunm
shhshsgggssssjsksjs
sggsjshsjsjssss
shshshhshshshs
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

check position of end of line for some specific lines

-------------------------------------------------------------------------------- Have to check in a file that the lines starting with 620 and 705 are ending at same posiotin. 82012345 62023232323 70523949558 62023255454 9999 In the above lines, i have to check the lines starting... (1 Reply)
Discussion started by: senthil_is
1 Replies

2. Shell Programming and Scripting

Removing end of line to merge multiple lines

I'm sure this will be an easy question for you experts out there, but I have been searching the forum and working on this for a couple hours now and can't get it right. I have a very messy data file that I am trying to tidy up - one of the issues is some records are split into multiple lines: ... (4 Replies)
Discussion started by: tink
4 Replies

3. UNIX for Advanced & Expert Users

need to concatenate two lines if the line doesnt end with quotes

Hi I am getting a source file where the columns are seperated by comma and double Quotes Eg1 : "AAA","BBB","CCCC" in the same source file i am also getting few lines where my last columns double quotes are ending in its next line or the next next line Eg2: "AAA","BBB","CCC CC"... (9 Replies)
Discussion started by: laxmi131
9 Replies

4. Programming

How to write a new line to the end of the file in Perl?

i am very new to Perl. i am using Ubuntu. i have a string call $string that contains following words "new line". i also have a data file as follows. djfibjbet etitrbjijbtr rrge rgjierjegjeri jerijg kijij jijij i want to write my new line to my data file as follows. djfibjbet... (3 Replies)
Discussion started by: usustarr
3 Replies

5. Shell Programming and Scripting

Adding lines at end of a line

This is what I want to do. I want to write a script that reads each line (of the highlighted file below) and add a specific number of blank lines (sometime 2, 3 or 5 lines) at the end of each line while copying that line. For example, here is the input. The sky is blue. I like to eat. I like... (19 Replies)
Discussion started by: Ernst
19 Replies

6. Shell Programming and Scripting

Append text to end of line on all lines

Hi, I've spent some time researching for this but can't seem to find a solution. I have a file like this 1234|Test|20101111|18:00|19:00There will be multiple lines in the file with the same kind of format. For every line I need to make it this 1234|Test|20101111|18:00|19:00||create... (5 Replies)
Discussion started by: giles.cardew
5 Replies

7. UNIX for Dummies Questions & Answers

Grep lines with numbers greater than 2 digits at the end of the line

I'm trying to grep lines where the digits at the end of each line are greater than digits. Tried this but it will only allow me to specify 2 digits. Any ideas would greatly be appreciated. grep -i '\<\{3,4,5\}\>' file ---------- Post updated at 05:58 PM ---------- Previous update was at 05:41... (1 Reply)
Discussion started by: jimmyf
1 Replies

8. Shell Programming and Scripting

Delete lines that contain a pattern from specific line to the end.

Gents, I am trying to delete all lines which start with "H" character, but keeping the fist header. Example In the input file I will delete all lines starting from line 8 which contents character "H" to the end of the file. I try sed '8,10000{/^H/d;}' file But as don't know the end... (1 Reply)
Discussion started by: jiam912
1 Replies

9. Shell Programming and Scripting

Perl to extract values and print at end of each line

In the below perl I am trying to extract and print the values AF1=, the GT value, and F or QUAL diveded by 33 (rounded to the nearest whole #). The GT value is at the end after the GT:PL so all the possibilities are read into a hash h, then depending on the value that is in the line the... (1 Reply)
Discussion started by: cmccabe
1 Replies

10. UNIX for Beginners Questions & Answers

Get an output of lines in pattern 1st line then 10th line then 11th line then 20th line and so on.

Input file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 (6 Replies)
Discussion started by: Sagar Singh
6 Replies
CEVE(1) 							    DOSE Tools								   CEVE(1)

NAME
dose-ceve - parse package metadata SYNOPSIS
dose-ceve [-h] [-v] [-e pkgspec] [-c pkgspec] [-r pkgspec] [--depth=n] [-t format] [-o filename] input-spec DESCRIPTION
Dose-ceve is a generalized metadata parser. It reads package specifications, extracts package metadata from them, performs some manipulations, and outputs the package metadata in one of several formats. OPTIONS
-h This option displays the help message. Can also be specified as --help. -v Be verbose. This option can be repeated for more verbosity. -e pkgspec (Option Not Implemented Yet) Extract the transitive closure of packages connected (by conflict or dependency) to any of the packages that satisfy pkgspec. Such a package specification is a list of packages (separated by a semicolon), where each package is specified as follows: (name,version). This option can also be specified as --extract=pkgspec. -c pkgspec Similar to the -c option, but only uses the dependency relation to make the transitive closure. This option can also be specified as --cone=pkgspec. -r pkgspec Similar to the -e and -c options, but uses the reverse dependency relation to make the transitive closure. This option can also be specified as --rcone=pkgspec. --depth=n In combination with the -e, -c or -r options, this specifies the maximum depth for the transitive closure. =item -t format Specifies the output format to use. Possible values are dot for a graph output in Dot/GraphViz format, cnf for an output in CNF format, dimacs for an output in the DIMACS format for CNF formulae, and cudf for a pretty-print output in an RFC 822-like format. This option can also be specified as --outtype=format. -o filename Instead of stdout, send output to the file filename. This option can also be specified as --outfile=filename. =item input-spec This is a URL specifying both the input format and the file to get the input from. Possible schemes are: =item * cudf for cudf files =item * deb for Debian package files (possibly compressed with gzip(1) or bzip2(1), depending on compile-time options for dose3) =item * debstdin for Debian package files read from standard input =item * eclipse for Eclipse (p2) package files =item * pgsql for PostgreSQL databasess =item * sqlite for sqlite databases * hdlist for RPM hdlists =item * synth for urpmi synthesis hdlists Some examples of URLs: * deb://Packages.gz (the Debian file packages.gz in the current directory) * cudf:///home/examples/cudf/test.cudf (the CUDF file /home/examples/cudf/test.cudf) * psql://user@db.mancoosi.org:723/packages (the database packages on host db.mancoosi.org on port 723, accessed as user user) dose3 3.0.2 2012-10-03 CEVE(1)
All times are GMT -4. The time now is 11:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy