11-03-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Execution of the following segment is giving the error -
Script extract:-
OUT=$DATADIR/sol_rsult_orphn.bcp
TMP1=${OUT}_tmp1
TMP=${OUT}_tmp
( isql -w 400 $dbConnect_OPR <<EOF
select convert(char(10), s.lead_id)
+'|'
+ s.pho_loc_type,
";",
s.sol_rsult_cmnt,
";",
+'|'+ s.del_ind... (3 Replies)
Discussion started by: kzmatam
3 Replies
2. Shell Programming and Scripting
I need to print specific lines from a file, say 2-5, 8, 12-15, 17, 19, 21-27. How do I achieve this? (2 Replies)
Discussion started by: Ilja
2 Replies
3. Shell Programming and Scripting
Greetings all. :)
I would like to use sed to join all non-blank lines together in a particular file. I was thinking I could do this by simply replacing the terminating, new-line character on every line which is not blank, but I must be missing something in my sed line:
$ sed... (3 Replies)
Discussion started by: SteveB-in-LV
3 Replies
4. Shell Programming and Scripting
I want to use SED to replace all new line characters of a file, I googled and found this one liner
sed '{:q;N;s/\n//g;t q}' infile
what do :q;N; and t q mean in this script? (6 Replies)
Discussion started by: kevintse
6 Replies
5. Shell Programming and Scripting
sed awk one liner (2 Replies)
Discussion started by: jap2614
2 Replies
6. UNIX for Advanced & Expert Users
Can anyone explain the below sed oneliner?
sed -e ':a' -e '$q;N;11,$D;ba'
It works same as tail command.
I just want to know how it works.
Thanks
---------- Post updated at 11:42 PM ---------- Previous update was at 11:37 PM ----------
Moderators,
Can you please delete this thread?... (0 Replies)
Discussion started by: pandeesh
0 Replies
7. UNIX for Advanced & Expert Users
Can anyone explain the below sed oneliner?
sed -e ':a' -e '$q;N;11,$D;ba'
It works same as tail command.
I just want to know how it works.
Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies
8. UNIX for Dummies Questions & Answers
I have a data base of part numbers:
AAA Thing1
BBB Thing2
CCC Thing3
File one is a list of part numbers:
AAA234
BBB678
CCC2345
Is there a sed one-line that would compare a data base with and replace the part numbers so that the output looks like this?
AAA234 Thing1
BBB678 Thing2... (5 Replies)
Discussion started by: jimmyf
5 Replies
9. UNIX for Dummies Questions & Answers
I have a data base of part numbers:
AAA Thing1
BBB Thing2
CCC Thing3
File one is a list of part numbers:
XXXX AAA234
XXXX BBB678
XXXX CCC2345
Is there a sed one-line that would compare a data base with and replace the part numbers so that the output looks like this?
XXXX AAA234... (7 Replies)
Discussion started by: jimmyf
7 Replies
10. Shell Programming and Scripting
Hi,
I have the following command.(Delete all trailing blank lines at the end of a file.)
sed -e :a -e '/^\n*$/{$d;N;ba' -e '}'
I don't understand the logic of this command and also I don't understand why -e is used.
Can you please let me know the logic of this command and why three -e... (5 Replies)
Discussion started by: TomG
5 Replies
LEARN ABOUT DEBIAN
gnome2::gconf::value
Gnome2::GConf::Value(3pm) User Contributed Perl Documentation Gnome2::GConf::Value(3pm)
NAME
Gnome2::GConf::Value - Opaque datatype for generic values
SYNOPSIS
$client = Gnome2::GConf::Client->get_default;
$client->set($config_key,
{
type => 'string',
value => 'Hello, World',
});
print "The Meaning of Life." if ($client->get($another_key)->{value} == 42);
DESCRIPTION
"GConfValue" is a dynamic type similar to "GValue", and represents a value that can be obtained from or stored in the configuration
database; it contains the value bound to a key, and its type.
In perl, it's an hashref containing these keys:
type
The type of the data. Fundamental types are 'string', 'int', 'float' and 'bool'. Lists are handled by passing an arrayref as the
payload of the "value" key:
$client->set($key, { type => 'string', value => 'some string' });
$client->set($key, { type => 'float', value => 0.5 });
$client->set($key, { type => 'bool', value => FALSE });
$client->set($key, { type => 'int', value => [0..15] });
Pairs are handled by using the special type 'pair', and passing, in place of the "value" key, the "car" and the "cdr" keys, each
containing an hashref representing a GConfValue:
$client->set($key, {
type => 'pair',
car => { type => 'string', value => 'some string' },
cdr => { type => 'int', value => 42 },
});
This is needed since pairs might have different types; lists, instead, are of the same type.
value
The payload, containing the value of type "type". It is used only for fundamental types (scalars or lists).
car, cdr
Special keys, that must be used only when working with the 'pair' type.
SEE ALSO
Gnome2::GConf(3pm), Gnome2::GConf::Entry(3pm), Gnome2::GConf::Schema(3pm), Gnome2::GConf::ChangeSet(3pm).
METHODS
integer = $value_a->compare ($value_b)
o $value_b (value)
Since: gconf 2.13
string = $value->to_string
SEE ALSO
Gnome2::GConf
COPYRIGHT
Copyright (C) 2003-2006 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2::GConf for a full notice.
perl v5.14.2 2011-11-17 Gnome2::GConf::Value(3pm)