Sponsored Content
Top Forums Shell Programming and Scripting How to Grep than scan line below grep pattern Post 302859717 by joeyg on Thursday 3rd of October 2013 02:52:07 PM
Old 10-03-2013
So, there could be more than one pair of data?
20131002 and Voice
 

10 More Discussions You Might Find Interesting

1. Solaris

How do i grep a pattern from part of LINE

Hi how do i grep only a part of the line from a file from all the lines. file: asdfgh 543212376 nag lkjh abhilash 543757858 How do i grep and print only 543212376 and 543757858 Can i grep something like 543* and print only that. (3 Replies)
Discussion started by: 123nagendrabhi
3 Replies

2. UNIX for Dummies Questions & Answers

grep line pattern search

Hello everyone, I have been trying to get a list of all files containing a line of this type: };#followed by anything with any spaces (0 or more or 0 or more tabs) before the } and between each of the characters. I have been trying this : grep '*}*;*#*' *.c but I have not been fully... (1 Reply)
Discussion started by: gio001
1 Replies

3. Solaris

Multiple pattern on same line using grep

Hi, I would like to search multiple patterns on same line, i.e. all patterns must present on same line. Please suggest. Thanx (2 Replies)
Discussion started by: sanjay1979
2 Replies

4. Shell Programming and Scripting

Grep multiple line pattern and output the lines

Hi I have the following Input -- -- TABLE: BUSINESS_UNIT -- ALTER TABLE RATINGS.BUSINESS_UNIT ADD CONSTRAINT FK1_BUSINESS_UNIT FOREIGN KEY (PEOPLESOFT_CHART_FIELD_VALUE_ID) REFERENCES RATINGS.PEOPLESOFT_CHART_FIELD_VALUE(PEOPLESOFT_CHART_FIELD_VALUE_ID) ; ALTER TABLE... (1 Reply)
Discussion started by: pukars4u
1 Replies

5. Shell Programming and Scripting

grep a pattern with line numbers.

I have a txt file with more than 10000 lines. There is a unique pattern which is scattered into the file. it starts with @9 and it has 15 characters. i need to grep them and display along with line numbers. Eg: File - Test1 test message.... .... .. .. @9qwerty89 ...test message... (8 Replies)
Discussion started by: abinash
8 Replies

6. Shell Programming and Scripting

Grep the word from pattern line and update in subsequent lines till next pattern line reached

Hi, I have got the below requirement. please suggest. I have a file like, Processing Item is: /data/ing/cfg2/abc.txt /data/ing/cfg3/bgc.txt Processing Item is: /data/cmd/for2/ght.txt /data/kernal/config.klgt.txt I want to process the above file to get the output file like, ... (5 Replies)
Discussion started by: rbalaj16
5 Replies

7. Shell Programming and Scripting

grep based on pattern in a line and print the column before that

$ cat file.log Message Number = : Sending message 10:50:16^|^reqhdr.dummyid^=^02^|^reqhdr.timezone^=^GMT+05:30^|^DUMMYREQUEST^=^BH||||||||||||||||||$BD|OL|C|V||DummyAcctNo|02||24/12/2011|ST_DDM|DDM||||||||reqUUID110612105016$BT||||||||||||||||||$] Length I have the above line in the... (4 Replies)
Discussion started by: kalidass
4 Replies

8. Shell Programming and Scripting

sed command to grep multiple pattern present in single line and delete that line

here is what i want to achieve.. i have a file with below contents cat fileName blah blah blah . .DROP this REJECT that . --sport 7800 -j REJECT --reject-with icmp-port-unreachable --dport 7800 -j REJECT --reject-with icmp-port-unreachable . . . more blah blah blah --dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies

9. Shell Programming and Scripting

sed and awk usage to grep a pattern 1 and with reference to this grep a pattern 2 and pattern 3

Hi , I have a file where i have modifed certain things compared to original file . The difference of the original file and modified file is as follows. # diff mir_lex.c.modified mir_lex.c.orig 3209c3209 < if(yy_current_buffer -> yy_is_our_buffer == 0) { --- >... (5 Replies)
Discussion started by: breezevinay
5 Replies

10. UNIX for Beginners Questions & Answers

Grep file starting from pattern matching line

I have a file with a list of references towards the end and want to apply a grep for some string. text .... @unnumbered References @sp 1 @paragraphindent 0 2017. @strong{Chalenski, D.A.}; Wang, K.; Tatanova, Maria; Lopez, Jorge L.; Hatchell, P.; Dutta, P.; @strong{Small airgun... (1 Reply)
Discussion started by: kristinu
1 Replies
std::pair< _T1, _T2 >(3cxx)											       std::pair< _T1, _T2 >(3cxx)

NAME
std::pair< _T1, _T2 > - SYNOPSIS
Public Types typedef _T1 first_type typedef _T2 second_type Public Member Functions constexpr pair () constexpr pair (const _T1 &__a, const _T2 &__b) template<class _U1 , class _U2 > constexpr pair (const pair< _U1, _U2 > &__p) constexpr pair (const pair &) template<class _U1 , class = typename std::enable_if<std::is_convertible<_U1, _T1>::value>::type> pair (_U1 &&__x, const _T2 &__y) template<class _U2 , class = typename std::enable_if<std::is_convertible<_U2, _T2>::value>::type> pair (const _T1 &__x, _U2 &&__y) template<class _U1 , class _U2 , class = typename std::enable_if<std::is_convertible<_U1, _T1>::value && std::is_convertible<_U2, _T2>::value>::type> pair (_U1 &&__x, _U2 &&__y) template<class _U1 , class _U2 > pair (pair< _U1, _U2 > &&__p) template<class... _Args1, class... _Args2> pair (piecewise_construct_t, tuple< _Args1...> __first, tuple< _Args2...> __second) pair & operator= (const pair &__p) pair & operator= (pair &&__p) template<class _U1 , class _U2 > pair & operator= (const pair< _U1, _U2 > &__p) template<class _U1 , class _U2 > pair & operator= (pair< _U1, _U2 > &&__p) void swap (pair &__p) Public Attributes _T1 first _T2 second Detailed Description template<class _T1, class _T2>struct std::pair< _T1, _T2 > Struct holding two objects of arbitrary type. Definition at line 87 of file stl_pair.h. Member Typedef Documentation template<class _T1, class _T2> typedef _T2 std::pair< _T1, _T2 >::second_type first_type is the first bound type Definition at line 90 of file stl_pair.h. Constructor &; Destructor Documentation template<class _T1, class _T2> constexpr std::pair< _T1, _T2 >::pair () [inline] second is a copy of the second object The default constructor creates first and second using their respective default constructors. Definition at line 99 of file stl_pair.h. template<class _T1, class _T2> constexpr std::pair< _T1, _T2 >::pair (const _T1 &__a, const _T2 &__b) [inline] Two objects may be passed to a pair constructor to be copied. Definition at line 103 of file stl_pair.h. template<class _T1, class _T2> template<class _U1 , class _U2 > constexpr std::pair< _T1, _T2 >::pair (const pair< _U1, _U2 > &__p) [inline] There is also a templated copy ctor for the pair class itself. Definition at line 108 of file stl_pair.h. Member Data Documentation template<class _T1, class _T2> _T1 std::pair< _T1, _T2 >::first second_type is the second bound type Definition at line 92 of file stl_pair.h. Referenced by std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), std::set< _StateIdT >::insert(), std::operator<(), and std::operator==(). template<class _T1, class _T2> _T2 std::pair< _T1, _T2 >::second first is a copy of the first object Definition at line 93 of file stl_pair.h. Referenced by std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), std::set< _StateIdT >::insert(), and std::operator==(). Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::pair< _T1, _T2 >(3cxx)
All times are GMT -4. The time now is 03:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy