Sponsored Content
Top Forums Shell Programming and Scripting awk pattern search and put in a file Post 302381087 by pranabrana on Thursday 17th of December 2009 06:42:15 AM
Old 12-17-2009
i am havinga file. In that file in 9th column i have to serch for patterns



OTC-SPI
OTC-SSP and so on

I and redirect the complete line to a new file


this is my desire
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

search a word in a xml file and print the out put

hi , i m having a html file and this file looks like this <ssl> <name>PIA</name> <enabled>true</enabled> <listen-port>39370</listen-port> </ssl> <log> <name>PIA</name> </log> <execute-queue> <name>weblogic.kernel.Default</name> ... (7 Replies)
Discussion started by: becksram123
7 Replies

2. Shell Programming and Scripting

Awk search for string pattern in delimited file

I've got a semicolon delimited file. I would like to search for fields that match a pattern, and not hardcoded eg "mth". *th=something If the delimited field fulfills this condition, eg. mth=value I would like to print out both key and value for some number comparison. eg. if value > "12"... (5 Replies)
Discussion started by: alienated
5 Replies

3. Shell Programming and Scripting

Awk/Sed: Search Pattern from file and Print

Hi, I want to search for patterns (from a file) in a file and print the line matching the patterns and the line before it. I have to search for 100s of patterns from a file. Any help with AWK or Sed. Thanks! (2 Replies)
Discussion started by: saint2006
2 Replies

4. Shell Programming and Scripting

Help to search multiple pattern in file with grep/sed/awk

Hello All, I have a file which is having below type of data, Jul 19 2011 | 123456 Jul 19 2011 | 123456 Jul 20 2011 | 123456 Jul 20 2011 | 123456 Here I wanted to grep for date pattern as below, so that it should only grep "Jul 20" OR "Jul ... (9 Replies)
Discussion started by: gr8_usk
9 Replies

5. UNIX for Advanced & Expert Users

use of variables in awk to search for pattern from a file

Hi, I need to extract all the content between two strings stored in two variables "startstring" and "endstring" startstring=hello enstring=world #notworking awk '/$startstring/, $NF ~ /$endstring/ ' file > file2 The above code is not working with variables. It works when actual string... (2 Replies)
Discussion started by: jeanjkj
2 Replies

6. Programming

search file and put into struct

hi everybody, I need some help with some programming. I need to write a file that can search in a text file and read the whole line into a struct. the struct = struct Transistor { char chType; char chFabrikant; float fPrijs; enum Transistor_Behuizing { empty,TO18, TO39,... (8 Replies)
Discussion started by: metal005
8 Replies

7. Shell Programming and Scripting

awk get search pattern from a file.

Here Is a problem I am facing with awk. Query --> I want to search for a string in a file and print next 15 lines below the matched string. 1.We do not have GNU grep so cannot use grep -A or grep -B commands. 2. Instead of passing the search pattern as a string to awk. I want the awk to... (4 Replies)
Discussion started by: togotutor
4 Replies

8. Shell Programming and Scripting

Awk to match a pattern and perform a search after the first pattern

Hello Guyz I have been following this forum for a while and the solutions provided are super useful. I currently have a scenario where i need to search for a pattern and start searching by keeping the first pattern as a baseline ABC DEF LMN EFG HIJ LMN OPQ In the above text i need to... (8 Replies)
Discussion started by: RickCharles
8 Replies

9. Shell Programming and Scripting

Search for a pattern in a String file and count the occurance of each pattern

I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported Input file is a free flowing file without any format example of output ERR-00001=5 .... ERR-01010=10 ..... ERR-99999=10 (4 Replies)
Discussion started by: swayam123
4 Replies

10. UNIX for Beginners Questions & Answers

Grep/awk using a begin search pattern and end search pattern

I have this fileA TEST FILE ABC this file contains ABC; TEST FILE DGHT this file contains DGHT; TEST FILE 123 this file contains ABC, this file contains DEF, this file contains XYZ, this file contains KLM ; I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
libcspi.3(3)						 Introduction to Library Functions					      libcspi.3(3)

NAME
at-spi, libcspi - Assistive Technology Service Provider Interface, and AT-SPI C Bindings DESCRIPTION
at-spi is the Assistive Technology Service Provider Interface, which provides a set of client-side APIs for use by assistive technologies. Assistive Technologies are augmentative or adaptive technologies that make the desktop user interface accessible to persons with disabili- ties. These APIs for assistive technology developers are available in two forms. at-spi is defined by CORBA IDL in the following files: /usr/share/gnome/idl/at-spi-1.0/Accessibility.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Accessible.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Action.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Application.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Component.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Desktop.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_EditableText.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Event.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Hyperlink.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Hypertext.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Image.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Registry.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Relation.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Role.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Selection.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_State.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_StreamableContent.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Table.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Text.idl /usr/share/gnome/idl/at-spi-1.0/Accessibility_Value.idl An AT-SPI client can use any programming language for which general CORBA language bindings are available (for example, Java, C, C++) and may use any CORBA 2.2-compliant ORB. The client bindings are generated from the above IDL by a language-specific IDL compiler which is usu- ally bundled with ORBs. The GNOME 2 environment includes an efficient ORB with C bindings (ORBit2). libcspi AT-SPI clients may also use the C language bindings that are defined in libcspi and documented in the developer documentation. To access the developer documentation, you must install the developer version of the package. Such clients may also link to libcspi, which provides CORBA server-side implementations of the Accessibility::EventLister interfaces which are used for AT-SPI event notification support. FILES
The following files are used by this application: /usr/lib/libcspi.so AT-SPI C Binding shared library /usr/share/gtk-doc/html Location of developer documentation ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-a11y-libs | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
libatk-1.0(3) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003, 2004. SunOS 5.10 31 Aug 2004 libcspi.3(3)
All times are GMT -4. The time now is 04:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy