Sponsored Content
Top Forums Shell Programming and Scripting Read a lis, find items in a file from the list, change each item Post 302986925 by itkamaraj on Friday 2nd of December 2016 12:55:23 AM
Old 12-02-2016
try this...

Code:
awk 'NF<2{$0="NAME;"$0"\tfailed"}1' incomplete_case_list
aname   val
NAME;r'(1,)     3.28584
NAME;r'(2,)     failed
NAME;r'(3,)     6.13003
NAME;r'(4,)     4.18037
NAME;r'(5,)     failed

This User Gave Thanks to itkamaraj For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

list read only files using find

hi, how can i list read only files (for u,g,o) using find command? Thanks and Regards Vivek.s (1 Reply)
Discussion started by: vivekshankar
1 Replies

2. UNIX for Dummies Questions & Answers

How to mark ALL mail items as read?

Hi guys. Does anyone know if there is a mail command that will allow you to flag all mail items as being read? I've checked out the man mail pages, but can't seem to find what I'm looking for. :confused: We are running UNIX AIX 5.2. Thanks in advance, Kev (3 Replies)
Discussion started by: Krispy
3 Replies

3. Shell Programming and Scripting

change some record item

Hi all, I have a file with over 10,000 line, but I would like to update/add some code number (such as 062 below) into the line with <phone number> below: 11111<name> john matin <name> 12345<phone number> 123456 <phone number> 34556 <address> 1234 lucky road <address> 11111<name> john... (7 Replies)
Discussion started by: happyv
7 Replies

4. Shell Programming and Scripting

find an available item in array

Dear all, I'm have a sorted array like this: 177 220 1001 2000 2001 2003 2005 notice that 2002 and 2004 are NOT in array. Then user input a number INPUT, our script should return OUTPUT value like this: if INPUT is not in array => OUTPUT=INPUT if INPUT is in array => OUTPUT is the... (4 Replies)
Discussion started by: fongthai
4 Replies

5. Shell Programming and Scripting

change list to comma seperated items

I have a list of servers in a file called serverlist like this server1 server2 server3 i need to have them (with no trailing comma, the program does not like that) server1,server2,server3 so far i have been using HOSTS=/tmp/serverlist HOSTS=${HOSTS:-$(grep -Ev "^#|^$"... (2 Replies)
Discussion started by: insania
2 Replies

6. UNIX for Dummies Questions & Answers

Question regarding syntax of (lis) and { list;}

Hi there, As you know, we can group a list of commands in either (list) form or { list;}. I know the difference between the two. (list) make the command list to be executed in a subshell while the commands gathered in { list;} are executed in the current shell. My question here is about the... (1 Reply)
Discussion started by: hongwei
1 Replies

7. Shell Programming and Scripting

retrieve what the currently selected item is in a dropdown select list using perl tk

I have a dropdown menu built in perl tk (I am using active state perl). I want to select a value from the dropdown menu and I want to be able to perform some other actions depending upon what value is selected. I have all the graphical part made but I dont know how to get the selected value. Any... (0 Replies)
Discussion started by: lassimanji
0 Replies

8. Shell Programming and Scripting

List content of item in the combobox

I have a combo.cgi here. this is linux environment What i am going to do is this combobox will list down all the flatfile name in this /u/test/cgi-bin/List directory. after that, i wanted it to open the flatfile and display the content of the flatfile into another listbox or textarea in this page... (0 Replies)
Discussion started by: chezy
0 Replies

9. Shell Programming and Scripting

Pass an array to awk to sequentially look for a list of items in a file

Hello, I need to collect some statistical results from a series of files that are being generated by other software. The files are tab delimited. There are 4 different sets of statistics in each file where there is a line indicating what the statistic set is, followed by 5 lines of values. It... (8 Replies)
Discussion started by: LMHmedchem
8 Replies

10. Shell Programming and Scripting

Script to process a list of items and uncomment lines with that item in a second file

Hello, I have a src code file where I need to uncomment many lines. The lines I need to uncomment look like, C CALL l_r(DESNAME,DESOUT, 'Gmax', ESH(10), NO_APP, JJ) The comment is the "C" in the first column. This needs to be deleted so that there are 6 spaces preceding "CALL".... (7 Replies)
Discussion started by: LMHmedchem
7 Replies
Gnome2::Canvas::RichText(3pm)				User Contributed Perl Documentation			     Gnome2::Canvas::RichText(3pm)

NAME
Gnome2::Canvas::RichText - Rich text canvas item HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gnome2::Canvas::Item +----Gnome2::Canvas::RichText METHODS
textbuffer = $text->get_buffer $text->set_buffer ($buffer) o $buffer (Gtk2::TextBuffer) $text->copy_clipboard $text->cut_clipboard textiter = $text->get_iter_at_location ($x, $y) o $x (integer) o $y (integer) rectangle = $text->get_iter_location ($iter) o $iter (Gtk2::TextIter) $text->paste_clipboard PROPERTIES
'anchor' (Gtk2::AnchorType : default "north-west" : readable / writable) Anchor point for text 'cursor-blink' (boolean : default true : readable / writable) Does the cursor blink in this rich text item? 'cursor-visible' (boolean : default true : readable / writable) Is the cursor visible in this rich text item? 'direction' (Gtk2::DirectionType : default "tab-backward" : readable / writable) Text direction 'editable' (boolean : default true : readable / writable) Is this rich text item editable? 'grow-height' (boolean : default false : readable / writable) Should the text box height grow if the text does not fit? 'height' (double : default 0 : readable / writable) Height for text box 'indent' (integer : default 0 : readable / writable) Number of pixels for indentation 'justification' (Gtk2::Justification : default "left" : readable / writable) Justification mode 'left-margin' (integer : default 0 : readable / writable) Number of pixels in the left margin 'pixels-above-lines' (integer : default 0 : readable / writable) Number of pixels to put above lines 'pixels-below-lines' (integer : default 0 : readable / writable) Number of pixels to put below lines 'pixels-inside-wrap' (integer : default 0 : readable / writable) Number of pixels to put inside the wrap 'right-margin' (integer : default 0 : readable / writable) Number of pixels in the right margin 'text' (string : default undef : readable / writable) Text to display 'visible' (boolean : default true : readable / writable) Is this rich text item visible? 'width' (double : default 0 : readable / writable) Width for text box 'wrap-mode' (Gtk2::WrapMode : default "word" : readable / writable) Wrap mode for multiline text 'x' (double : default 0 : readable / writable) X position 'y' (double : default 0 : readable / writable) Y position SIGNALS
tag-changed (Gnome2::Canvas::RichText, Glib::Object) ENUMS AND FLAGS
enum Gtk2::AnchorType o 'center' / 'GTK_ANCHOR_CENTER' o 'north' / 'GTK_ANCHOR_NORTH' o 'north-west' / 'GTK_ANCHOR_NORTH_WEST' o 'north-east' / 'GTK_ANCHOR_NORTH_EAST' o 'south' / 'GTK_ANCHOR_SOUTH' o 'south-west' / 'GTK_ANCHOR_SOUTH_WEST' o 'south-east' / 'GTK_ANCHOR_SOUTH_EAST' o 'west' / 'GTK_ANCHOR_WEST' o 'east' / 'GTK_ANCHOR_EAST' o 'n' / 'GTK_ANCHOR_N' o 'nw' / 'GTK_ANCHOR_NW' o 'ne' / 'GTK_ANCHOR_NE' o 's' / 'GTK_ANCHOR_S' o 'sw' / 'GTK_ANCHOR_SW' o 'se' / 'GTK_ANCHOR_SE' o 'w' / 'GTK_ANCHOR_W' o 'e' / 'GTK_ANCHOR_E' enum Gtk2::DirectionType o 'tab-forward' / 'GTK_DIR_TAB_FORWARD' o 'tab-backward' / 'GTK_DIR_TAB_BACKWARD' o 'up' / 'GTK_DIR_UP' o 'down' / 'GTK_DIR_DOWN' o 'left' / 'GTK_DIR_LEFT' o 'right' / 'GTK_DIR_RIGHT' enum Gtk2::Justification o 'left' / 'GTK_JUSTIFY_LEFT' o 'right' / 'GTK_JUSTIFY_RIGHT' o 'center' / 'GTK_JUSTIFY_CENTER' o 'fill' / 'GTK_JUSTIFY_FILL' enum Gtk2::WrapMode o 'none' / 'GTK_WRAP_NONE' o 'char' / 'GTK_WRAP_CHAR' o 'word' / 'GTK_WRAP_WORD' o 'word-char' / 'GTK_WRAP_WORD_CHAR' SEE ALSO
Gnome2::Canvas, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gnome2::Canvas::Item COPYRIGHT
Copyright (C) 2003-2004 by the Gtk2-Perl Team. This software is licensed under the LGPL; see Gnome2::Canvas for a full notice. perl v5.14.2 2011-11-16 Gnome2::Canvas::RichText(3pm)
All times are GMT -4. The time now is 01:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy