08-30-2002
*beaming at the praise*
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I have recently had to start using Unix for work and I have hit brick wall with this prob....
I have a file that goes a little something like this....
EUR;EUR;EUR:USD:USD;USD;;;EUR/USD;XAU/AUD;XAU/EUR;XAU/AUD,GBP/BOB,UAD/XAU;;;1.11;2.22;3.33;4.44;5.55;6.66;;;
is it possible to... (7 Replies)
Discussion started by: luckycharm
7 Replies
2. Shell Programming and Scripting
I have the following string sample:
bla bla bla bla bla
I would like to extract the "123" using awk.
I thought about awk -F"]" '{ print $1 }' but it doesn't work
Any ideas ? (7 Replies)
Discussion started by: gdub
7 Replies
3. Shell Programming and Scripting
Hello,
I have data where words are separated by a delimiter. In this case "="
The number of delimiters in a line can vary from 4to 8. The norm is 4.
Is it possible to have a script where the file could be separated starting with highest number of delimiters and ending with the lowest
An... (8 Replies)
Discussion started by: gimley
8 Replies
4. Shell Programming and Scripting
Hello
If you wanted to sort a .csv file that was filled with lines like this:
<Ticker>,<Date as YYYYMMDD>,<Time as H:M:S>,<Volume>,<Corr>
(H : , M, S: )
by date, does anybody know of a better solution than to turn the 3rd and 4th colons of every line into commas, sorting on four keys,... (20 Replies)
Discussion started by: Ryan.
20 Replies
5. Shell Programming and Scripting
Hi, I need to display the last column value in the below o/p.
sam2 PS 03/10/11 0 441
Unable to get o/p with this awk code
awk -F"+" '{ print $4 }' pwdchk.txt
I need to display 441(in this eg.) and also accept it as a variable to treat it with if condition and take a decision.... (1 Reply)
Discussion started by: sam_bd
1 Replies
6. Shell Programming and Scripting
Hi Folks,
This is the first time I ever encountered this situation
My input file is of this kind
cat input.txt
1 PAIXAF 0 1 1 -9 0 0 0 1 2 0 2 1 2 1
7 PAIXEM 0 7 1 -9 1 0 2 0 1 2 2 1 0 2
9 PAKZXY 0 2 1 -9 2 0 1 1 1 0 1 2 0 1
Till the sixth column (which is -9), I want my columns to... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
7. Shell Programming and Scripting
Hello all
I have a data base of information that is formatted like so:
JSD4863 XXX-XX-XXXX DOE, JOHN C JR-II BISS CPSC BS INFO TECH 412/779-9445
I need the last four digits of the phone number. However, many lines contain
'garbage data' that I'm not interested in. So i used a 'for loop'... (7 Replies)
Discussion started by: smartSometimes
7 Replies
8. Shell Programming and Scripting
awk 'BEGIN{OFS=","} FNR == 1
{if (NR > 1) {print fn,fnr,nl}
fn=FILENAME; fnr = 1; nl = 0}
{fnr = FNR}
/UNUSUAL/ && /\.gz/ ~ /FILENAME/ {nl++}
<'{system ("gunzip -cd FILENAME")}'
END ... (2 Replies)
Discussion started by: SkySmart
2 Replies
9. UNIX for Beginners Questions & Answers
HI All,
How to append the multiple delimiters to at end the file up to 69 fields.
FinalDelimiter Count is 69
recrod Delimeter count is 10
so 69-10=59
this script will add upto 59 Delimiters to that records.
this script will check each and every record in a file and append the delimiters... (4 Replies)
Discussion started by: vinod.peddiredd
4 Replies
10. Shell Programming and Scripting
Hi All,
I have a file with a single row having the following text
ABC.ABC.ABC,Database,New123,DBNAME,F,ABC.ABC.ABC_APP,"@FUNCTION1("ENT1") ,@FUNCTION2("ENT2")",R,
I want an output in the following format
ABC.ABC.ABC DBNAME ABC.ABC.ABC_APP '@FUNCTION1("ENT1")... (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
LEARN ABOUT DEBIAN
gnome2
Gnome2(3pm) User Contributed Perl Documentation Gnome2(3pm)
NAME
Gnome2 - Perl interface to the 2.x series of the GNOME libraries
SYNOPSIS
use Gnome2;
Gnome2::Program->init ($appname, $appversion);
my $app = Gnome2::App->new ($appname);
$app->show;
Gtk2->main;
ABSTRACT
Perl bindings to the 2.x series of the GNOME libraries. This module allows you to interface with the libgnome and libgnomeui libraries to
create GNOME applications.
DESCRIPTION
Since this module tries to stick very closely to the C API, the documentation found at
http://developer.gnome.org/doc/API/2.0/libgnome/index.html
and
http://developer.gnome.org/doc/API/2.0/libgnomeui/index.html
is the canonical reference.
In addition to that, there's also the automatically generated API documentation: Gnome2::index(3pm).
The mapping described in Gtk2::api(3pm) also applies to this module.
To discuss this module, ask questions and flame/praise the authors, join gtk-perl-list@gnome.org at lists.gnome.org.
MISSING METHODS
gnome_app_fill_menu_with_data
gnome_app_fill_menu_custom
Use gnome_app_fill_menu instead.
gnome_app_fill_toolbar_with_data
gnome_app_fill_toolbar_custom
Use gnome_app_fill_toolbar instead.
gnome_app_create_menus_interp
gnome_app_create_menus_with_data
gnome_app_create_menus_custom
Use gnome_app_create_menus instead.
gnome_app_create_toolbar_interp
gnome_app_create_toolbar_with_data
gnome_app_create_toolbar_custom
Use gnome_app_create_toolbar instead.
gnome_app_insert_menus_custom
gnome_app_insert_menus_with_data
gnome_app_insert_menus_interp
Use gnome_app_insert_menus instead.
RENAMED METHODS
gnome_program_get
Gnome2::Program->get has been renamed to ->get_program to avoid a clash with GObject->get.
gnome_popup_menu_attach
Gtk2::Menu->attach has been renamed to ->attach_to to avoid a clash with gtk_menu_attach.
gnome_popup_menu_append
Gtk2::Menu->append has been renamed to ->append_from to avoid a clash with gtk_menu_shell_append.
DIFFERENT CALL SIGNATURES OR SEMANTICS
gnome_client_set_restart_command
gnome_client_set_discard_command
gnome_client_set_resign_command
gnome_client_set_shutdown_command
gnome_client_set_clone_command
Instead of argc and argv you simply pass in a list.
gnome_program_init
Gnome2::Program->init automagically fills argc and argv so just omit these parameters.
SEE ALSO
perl(1), Gnome2::index(3pm), Glib(3pm), Gtk2(3pm), Gtk2::api(3pm).
AUTHOR
muppet <scott at asofyet dot org> did the initial stuff.
Torsten Schoenfeld <kaffeetisch at gmx dot de> took over between 0.34 and 0.36, and implemented lots of tests and missing functionality,
and corrected several of muppet's mistakes.
COPYRIGHT AND LICENSE
Copyright (C) 2003-2006 by the gtk2-perl team (see the file AUTHORS)
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
perl v5.14.2 2007-08-13 Gnome2(3pm)