08-22-2013
no, i'm sorry, i need to remove the line with this field:
er_enc_out 0 er_bad_os 0
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
I have a file like this:
aaa b c d e f
fsss g h i k l
qqq r t h n
I want:
aaa b c d e f
fsss g h i k l
qqq r t h , n
ggg p t e d u
qqq i o s , k (2 Replies)
Discussion started by: npatwardhan
2 Replies
2. Shell Programming and Scripting
Hello,
I have a file as such:
FFFFFFF6C000000 225280 225240 - - rwxs-
FFFFFFFF79C00000 3240 3240 - - rwxs-
FFFFFFFF7A000000 4096 4096 - - rwxs-
FFFFFFFF7A400000 64 64 ... (3 Replies)
Discussion started by: PointyWombat
3 Replies
3. Shell Programming and Scripting
I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work.
Brief overview:
I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
Discussion started by: crownedzero
14 Replies
4. Shell Programming and Scripting
Hello all,
I have thousand file input like this:
file1:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$ | | | |$$
$$ UERT | TTYH | TAFE | FRFG |$$
$$______|______|________|______|$$
$$ | | | |$$
$$ 1 | DISK | TR1311 | 1 |$$
$$ 1 |... (4 Replies)
Discussion started by: attila
4 Replies
5. Shell Programming and Scripting
Hello,
I have data in following format. ... (6 Replies)
Discussion started by: Pushpraj
6 Replies
6. Shell Programming and Scripting
hi gurus,
I would like to be able to use awk to process 1 file as such:
abc 1 2 3 4 5 6 7 8 9 10
flags 1 2 4
flags 1 2 5
abc 2 3 4 5 6 7 8 9 10 11
flags 1 2 3
abc 4 5 6 7 8 9 6 7 78 89
flags 1 2 3
flags 1 2 4
flags 1 2 3 4
I would like to be able to print field 1 and 5 when the... (4 Replies)
Discussion started by: revaroo
4 Replies
7. Shell Programming and Scripting
Hi All,
I'm having a hard time finding a starting point for my issue. I have a 30k line file (fspsec.txt) that I would like to parse into smaller files based on any character existing in field 1.
ACCOUNTANT LEVEL 1 (ACCT.ACCOUNTANT)
OPERATORS: DOEJO (418)
TOOLS: Branch Maintenance
... (2 Replies)
Discussion started by: aahlrich
2 Replies
8. Shell Programming and Scripting
Hi All,
Seeking for your assistance to print all the specific field when the condition met.
Ex:
file1.txt
1|203|3|31243|5341|6452|623|22|00|01
3|45345|123214|6534|3423|6565|643|343|232|10
if field 1 = 1 and field 3 = 3 and field 5 = 5341 and field 6 = 6452
it will print from $1 to $10.... (2 Replies)
Discussion started by: znesotomayor
2 Replies
9. Shell Programming and Scripting
In the below I am trying to use awk to match all the $13 values in input, which is tab-delimited,
that are in $1 of gene which is just a single column of text.
However only the line with the greatest $9 value in input needs to be printed.
So in the example below all the MECP2 and LTBP1... (0 Replies)
Discussion started by: cmccabe
0 Replies
10. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT DEBIAN
sql::translator::schema::object
SQL::Translator::Schema::Object(3pm) User Contributed Perl Documentation SQL::Translator::Schema::Object(3pm)
NAME
SQL::Translator::Schema::Object - Base class SQL::Translator Schema objects.
SYNOPSIS
DESCSIPTION
Base class for Schema objects. Sub classes Class::Base and adds the following extra functionality.
Construction
Derived classes should declare their attributes using the "_attributes" method. They can then inherit the "init" method from here which
will call accessors of the same name for any values given in the hash passed to "new". Note that you will have to impliment the accessors
your self and we expect perl style methods; call with no args to get and with arg to set.
e.g. If we setup our class as follows;
package SQL::Translator::Schema::Table;
use base qw/SQL::Translator::Schema::Object/;
__PACKAGE__->_attributes( qw/schema name/ );
sub name { ... }
sub schema { ... }
Then we can construct it with
my $table = SQL::Translator::Schema::Table->new(
schema => $schema,
name => 'foo',
);
and init will call "$table->name("foo")" and "$table->schema($schema)" to set it up. Any undefined args will be ignored.
Multiple calls to "_attributes" are cumulative and sub classes will inherit their parents attribute names.
This is currently experimental, but will hopefull go on to form an introspection API for the Schema objects.
Global Attributes
The following attributes are defined here, therefore all schema objects will have them.
extra
Get or set the objects "extra" attibutes (e.g., "ZEROFILL" for MySQL fields). Call with no args to get all the extra data. Call with a
single name arg to get the value of the named extra attribute, returned as a scalar. Call with a hash or hashref to set extra attributes.
Returns a hash or a hashref.
$field->extra( qualifier => 'ZEROFILL' );
$qualifier = $field->extra('qualifier');
%extra = $field->extra;
$extra = $field->extra;
remove_extra
"extra" can only be used to get or set "extra" attributes but not to remove some. Call with no args to remove all extra attributes that
have been set before. Call with a list of key names to remove certain extra attributes only.
# remove all extra attributes
$field->remove_extra();
# remove timezone and locale attributes only
$field->remove_extra(qw/timezone locale/);
equals
Determines if this object is the same as another.
my $isIdentical = $object1->equals( $object2 );
SEE ALSO
TODO
BUGS
AUTHOR
Ken Youens-Clark <kclark@cpan.org>, Mark Addison <mark.addison@itn.co.uk>.
perl v5.14.2 2012-01-20 SQL::Translator::Schema::Object(3pm)