When restoring a file in my uninstall program I need to remove the lines I added to a file during the install. In between the file can be modified by the users.
Assume file1 is as follow:
xxx str2 xxxx
.....
...The Following lines containing str* have to be removed...
xxx str1 xxxx
xxx ... (17 Replies)
Hello experts,
I am new to this group and to 'SED' and 'AWK'. I have data (text file) with 5 columns (C_1-5) and 100s of lines (only 10 lines are shown below as an example). I have to find or select only the id numbers (C-1) of specific lines with '90' in the same line (of C_3) AND with '20' in... (6 Replies)
Hi friends,
This is sed & awk type question.
I have a text file which has numbers spread all over the file. I want to sum the series of numbers whenever i find it and produce an output file with the sum. For example
###start of input text file ####
abc
def
ghi
1
2
3
4
kjld
random... (3 Replies)
Greetings All,
I would like to find all occurences of a pattern and delete a substring from the all matching lines EXCEPT the first. For example:
1234::group:user1,user2,user3,blah1,blah2,blah3
2222::othergroup:user9,user8
4444::othergroup2:user3,blah,blah,user1
1234::group3:user5,user1
... (11 Replies)
Data file example
I look for primary and * to isolate the interesting slot number.
slot=`sed '/^primary$/,/\*/!d' filename | tail -1 | sed s'/*//' | awk '{print $1" "$2}'`
Now I want to get the Touch line for only the associate slot number, in this case, because the asterisk... (2 Replies)
I am trying to remove lines in the target.txt file if $5 before the - in that file matches sorted_list. I have tried grep and awk. Thank you :).
grep
grep -v -F -f targets.bed sort_list
grep -vFf sort_list targets
awk
awk -F, '
> FILENAME == ARGV {to_remove=1; next}
> ! ($5 in... (2 Replies)
In the awk piped to sed below I am trying to format file by removing the odd xxxx_digits and whitespace after, then move the even xxxx_digit to the line above it and add a space between them. There may be multiple lines in file but they are in the same format. The Filename_ID line is the last line... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
wx::perl::datawalker
Wx::Perl::DataWalker(3pm) User Contributed Perl Documentation Wx::Perl::DataWalker(3pm)NAME
Wx::Perl::DataWalker - Perl extension for blah blah blah
SYNOPSIS
# alternatively, see the dataWalker.pl script in this distribution!
use Wx::Perl::DataWalker;
my $data_to_browse = {
# complex data structure.
# Good test: \%::
};
package MyWalkerDialog;
our @ISA = qw(Wx::App);
sub OnInit {
my $self = shift;
my $frame = Wx::Perl::DataWalker->new(
{data => $data_to_browse},
undef, -1,
"dataWalker",
);
$self->SetTopWindow($frame);
$frame->Show(1);
$frame->SetSize(500,500);
return 1;
}
package main;
my $app = MyWalkerDialog->new();
$app->MainLoop();
DESCRIPTION
"Wx::Perl::DataWalker" implements a "Wx::Frame" subclass that shows a relatively simple Perl data structure browser. After opening such a
frame and supplying it with a reference to an essentially arbitrary data structure, you can visually browse it by double-clicking
references.
So far, there is no tree view but only a display of the current level of the data structure. You can traverse back up the structure with a
back button.
Optionally, "Wx::Perl::DataWalker" displays the (approximate!) size of the data structure using "Devel::Size".
SEE ALSO
Wx, Devel::Size
Padre::Plugin::DataWalker
AUTHOR
Steffen Mueller, <smueller@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Steffen Mueller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8 or, at
your option, any later version of Perl 5 you may have available.
perl v5.10.0 2009-03-29 Wx::Perl::DataWalker(3pm)