Sponsored Content
Top Forums Shell Programming and Scripting Script to display record spanning over multiple lines Post 302294319 by summer_cherry on Thursday 5th of March 2009 03:01:27 AM
Old 03-05-2009
Code:
use strict;
undef $/;
open FH,"<a.txt";
my $str=<FH>;
$str=~s/\\\n/\\/g;
my @arr=split("\n",$str);
map {print $_,"\n" if /NOPASSWD/} @arr;

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Display multiple output lines

All, I have a file ABC.TXT which has two records: 12345 19.93 34.94 12345 94.84 10.48 If do the following command and grep '12345' ABC.TXT >> test1.txt If I look at the output of test1.txt I appears as follows: 12345 19.93 34.94 12345 94.84 10.48 I... (5 Replies)
Discussion started by: kingofprussia
5 Replies

2. Shell Programming and Scripting

using sed command to delete a string spanning multiple lines

file1 contains the following data sssssssssss firstline secondline pppppppppp ssssssssss Using sed comamnd i am trying to delete firtsline secondline. so, output should be sssssssssss pppppppppp ssssssssss I tried in the following the way, but it is not working. sed ... (9 Replies)
Discussion started by: radha.kalivar
9 Replies

3. UNIX for Dummies Questions & Answers

backup spanning multiple DVDs

Fedora Core 6 2.6.20-1.2962.fc6 I have about 15 GB of data that I need to backup to Single-Layer DVDs. Is there a backup method that will allow me to backup spanning multiple DVDs? (0 Replies)
Discussion started by: dangral
0 Replies

4. Programming

Compiling kernel mnodule spanning multiple files

Hello i guys i have a kernel module which has a list.c library I have one file mod.c (the main kernel module) and one list.c (which is the library) Could you please help me with the following questions .. 1) Is a header file needed (list.h) to be included in the mod.c ? 2) do we need to... (0 Replies)
Discussion started by: natraj
0 Replies

5. Shell Programming and Scripting

Cut display multiple lines of output

I have a script that runs a command, and the output is on multiple lines. The fields are delimited by '='. I need the 8th column from the first line and the 2nd from the second line, but I can't figure out how to display the second line. command1 | cut -d '=' -f 8 The above gets me what I... (2 Replies)
Discussion started by: cbo0485
2 Replies

6. Shell Programming and Scripting

AWK record in multiple lines

Hi everyboby this is my problem I Have this input 1111;222 222 2;333 3333;4444 111; 22222;33 33; 444 and I need this output 1111;2222222;3333333;4444 (15 Replies)
Discussion started by: agritur
15 Replies

7. Shell Programming and Scripting

Replacing pattern spanning multiple lines

Hi. I have input like this: <tr> <td class="logo1" rowspan="2"><a href="index.html"><img src="images/logo.png" /></a></td> <td class="pad1" rowspan="2">__</td> <td class="userBox"><img src="images/person.png"/> <a href="http://good.mybook.com/login.jsp">Sign In</a></td> <td... (5 Replies)
Discussion started by: zorrox
5 Replies

8. Shell Programming and Scripting

Retrieve the record using 2,2 lines and display the ouput in columnwise

This is my file ------------- Using index 8 for dump of table abd_det. (6101) Dumped 0 records. (13932) Using index 10 for dump of table abscc_det. (6101) Dumped 0 records. (13932) Using index 14 for dump of table absc_det. (6101) Dumped 254365 records. (13932) Using index 16 for dump of... (10 Replies)
Discussion started by: chakkaravarthy
10 Replies

9. UNIX for Dummies Questions & Answers

Display latest record from file based on multiple columns combination

I have requirement to print latest record from file based on multiple columns combination. EWAPE EW1SLE0000 EW1SOMU01 ABORTED 03/16/2015 100004 03/16/2015 100005 001 EWAPE EW1SLE0000 EW1SOMU01 ABORTED 03/18/2015 140003 03/18/2015 140004 001 EWAPE EW1SLE0000 EW1SOMU01 ABORTED 03/18/2015 220006... (1 Reply)
Discussion started by: tmalik79
1 Replies

10. Shell Programming and Scripting

Grep and display multiple lines

Hi guys, I have a log file that generates multiple logs about a query. <query time='2016-04-13 13:01:50.825'> <PagingRequestHandler> <Before>brand:vmu</Before> <After>brand:vmu</After> </PagingRequestHandler> <GroupDeviceFilterHandler> <Before>brand:vmu</Before> ... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
Gtk2::RcStyle(3)					User Contributed Perl Documentation					  Gtk2::RcStyle(3)

NAME
Gtk2::RcStyle HIERARCHY
Glib::Object +----Gtk2::RcStyle METHODS
rcstyle = Gtk2::RcStyle->new color = $style->base ($state, $new=undef) o $state (Gtk2::StateType) o $new (Gtk2::Gdk::Color or undef) color = $style->bg ($state, $new=undef) o $state (Gtk2::StateType) o $new (Gtk2::Gdk::Color or undef) scalar = $style->bg_pixmap_name ($state, $new=undef) o $state (Gtk2::StateType) o $new (string or undef) rcflags = $style->color_flags ($state, $new=0) o $state (Gtk2::StateType) o $new (Gtk2::RcFlags) rcstyle = $orig->copy color = $style->fg ($state, $new=undef) o $state (Gtk2::StateType) o $new (Gtk2::Gdk::Color or undef) scalar = $style->font_desc ($new=undef) o $new (scalar) scalar = $style->name ($new=undef) o $new (scalar) color = $style->text ($state, $new=undef) o $state (Gtk2::StateType) o $new (Gtk2::Gdk::Color or undef) scalar = $style->xthickness ($new=undef) o $new (scalar) scalar = $style->ythickness ($new=undef) o $new (scalar) ENUMS AND FLAGS
flags Gtk2::RcFlags o 'fg' / 'GTK_RC_FG' o 'bg' / 'GTK_RC_BG' o 'text' / 'GTK_RC_TEXT' o 'base' / 'GTK_RC_BASE' enum Gtk2::StateType o 'normal' / 'GTK_STATE_NORMAL' o 'active' / 'GTK_STATE_ACTIVE' o 'prelight' / 'GTK_STATE_PRELIGHT' o 'selected' / 'GTK_STATE_SELECTED' o 'insensitive' / 'GTK_STATE_INSENSITIVE' SEE ALSO
Gtk2, Glib::Object COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::RcStyle(3)
All times are GMT -4. The time now is 03:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy