Sponsored Content
Top Forums Shell Programming and Scripting accessing o an exact line in a file Post 100077 by tmarikle on Thursday 23rd of February 2006 02:30:55 PM
Old 02-23-2006
Your requirement is too vague. You need to provide more detail.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Formatting a text file to get data in exact line by line

I have my data something like this SERIAL FIRSTOCCURRENCE NETPROTOCOL 1947430693 07/01/2009 05:16:40 FR SERIAL FIRSTOCCURRENCE NETPROTOCOL 1947430746 07/01/2009 05:18:05 FR I want the output as follows.... (1 Reply)
Discussion started by: rdhanek
1 Replies

2. Shell Programming and Scripting

Finding the line with the exact same number

Hello All, What i am doing is , i tail a file from certain chatacter and then cat -n to get the line numbers.I search for a particular string and gets it line number. What i am interested in is the next line immediately after the pattern i search. But grep gives me result for all line... (5 Replies)
Discussion started by: kailash19
5 Replies

3. Shell Programming and Scripting

Filter files by exact line anywhere in file

I have two files. L1 and L2. (each file, has one string per line without any spaces) I would like to get those lines in L1 that are not present anywhere in L2. No substring match, just exact line by line match but it can be anywhere in the file. (line 5 in L1 may be present in line 22 of L2,... (2 Replies)
Discussion started by: nick2011
2 Replies

4. Shell Programming and Scripting

QUESTION1: grep only exact string. QUESTION2: find and replace only exact value with sed

QUESTION1: How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed. Contents of car.txt CAR1_KEY0 CAR1_KEY1 CAR2_KEY0 CAR2_KEY1 CAR1_KEY10 CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1 grep... (1 Reply)
Discussion started by: thibodc
1 Replies

5. UNIX for Advanced & Expert Users

Delete the exact match line from file

Hello All, I have following line and text file line =08 * * 3 /data/reports/bin/xyz.ksh -o customreports.com -f abc.sql -m xyz.com -c -g file:- abc.crontab 08 * * 3 /data/reports/bin/xyz.ksh -o customreports.com -f abc.sql -m xyz.com -c -g 06 * * 3 /data/reports/bin/xyz.ksh -o... (3 Replies)
Discussion started by: anyera
3 Replies

6. Shell Programming and Scripting

echo exact xml tag from an exact file

Im stumped on this one. Id like to echo into a .txt file all names for an xml feed in a huge folder. Can that be done?? Id need to echo <name>This name</name> in client.xml files. $path="/mnt/windows/path" echo 'recording names' cd "$path" for names in $path than Im stuck on... (2 Replies)
Discussion started by: graphicsman
2 Replies

7. Shell Programming and Scripting

Add line in exact place

I have one big XML file which contains information about 100 jobs,"JOB JOBISN=" indicates that is a job so where ever tag starts with "JOB JOBISN=" then i need to add below highlighted line between "<INCOND NAME" and "<OUTCOND NAME" for all jobs.like this i want to add below highlighted line for... (7 Replies)
Discussion started by: katakamvivek
7 Replies

8. Shell Programming and Scripting

Regex: print matched line and exact pattern match

Hi experts, I have a file with regexes which is used for automatic searches on several files (40+ GB). To do some postprocessing with the grep result I need the matching line as well as the match itself. I know that the latter could be achieved with grep's -o option. But I'm not aware of a... (2 Replies)
Discussion started by: stresing
2 Replies

9. Shell Programming and Scripting

Grep or sed - printing line only with exact match

Hello. In my script, some command return : q | kernel-default | package | 3.19.0-1.1.g8a7d5f9 | x86_64 | openSUSE-13.2-Kernel_stable_standard | kernel-default | package | 3.19.0-1.1.g8a7d5f9 | i586 | openSUSE-13.2-Kernel_stable_standard | kernel-default ... (3 Replies)
Discussion started by: jcdole
3 Replies

10. Shell Programming and Scripting

How to identify exact text and then add a blank line above it using sed?

I need to identify the exact text of San Antonio Generator Running in the output my script which lands to a text file. Once SED finds the specific text, I need it to insert one line above the matched text. Here is what I have so far that isn't working all that well for me. Any help would be... (7 Replies)
Discussion started by: jbrass
7 Replies
__gnu_pbds::detail::bin_search_tree_const_node_it_<__gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >(3)

NAME
__gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > - SYNOPSIS
Inherited by __gnu_pbds::detail::bin_search_tree_node_it_< Node, Const_Iterator, Iterator, _Alloc >. Public Types typedef Const_Iterator const_reference typedef trivial_iterator_difference_type difference_type" typedef trivial_iterator_tag iterator_category typedef _Alloc::template rebind< metadata_type > ::other::const_reference metadata_const_reference" typedef Node::metadata_type metadata_type typedef Const_Iterator reference typedef Const_Iterator value_type Public Member Functions bin_search_tree_const_node_it_ (const node_pointer p_nd=0) bin_search_tree_const_node_it_ < Node, Const_Iterator, Iterator, _Alloc > get_l_child () const " metadata_const_reference get_metadata () const bin_search_tree_const_node_it_ < Node, Const_Iterator, Iterator, _Alloc > get_r_child () const " bool operator!= (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > &other) const const_reference operator* () const bool operator== (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > &other) const Public Attributes node_pointer m_p_nd Detailed Description template<typename Node, class Const_Iterator, class Iterator, typename _Alloc>class __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > Const node iterator. Definition at line 58 of file bin_search_tree_/node_iterators.hpp. Member Typedef Documentation template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > typedef Const_Iterator __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::const_reference Iterator's __const reference type. Definition at line 80 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > typedef trivial_iterator_difference_type __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::difference_type Difference type. Definition at line 71 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > typedef trivial_iterator_tag __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::iterator_category Category. Definition at line 68 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > typedef _Alloc::template rebind<metadata_type>::other::const_reference __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::metadata_const_reference Const metadata reference type. Definition at line 88 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > typedef Node::metadata_type __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::metadata_type Metadata type. Definition at line 83 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > typedef Const_Iterator __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::reference Iterator's reference type. Definition at line 77 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > typedef Const_Iterator __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::value_type Iterator's value type. Definition at line 74 of file bin_search_tree_/node_iterators.hpp. Member Function Documentation template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > bin_search_tree_const_node_it_<Node, Const_Iterator, Iterator, _Alloc> __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::get_l_child () const [inline] Returns the __const node iterator associated with the left node. Definition at line 107 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > metadata_const_reference __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::get_metadata () const [inline] Metadata access. Definition at line 102 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > bin_search_tree_const_node_it_<Node, Const_Iterator, Iterator, _Alloc> __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::get_r_child () const [inline] Returns the __const node iterator associated with the right node. Definition at line 112 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > bool __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::operator!= (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > &other) const [inline] Compares (negatively) to a different iterator object. Definition at line 122 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > const_reference __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::operator* () const [inline] Access. Definition at line 97 of file bin_search_tree_/node_iterators.hpp. template<typename Node , class Const_Iterator , class Iterator , typename _Alloc > bool __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >::operator== (const bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc > &other) const [inline] Compares to a different iterator object. Definition at line 117 of file bin_search_tree_/node_iterators.hpp. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ __gnu_pbds::detail::bin_search_tree_const_node_it_< Node, Const_Iterator, Iterator, _Alloc >(3)
All times are GMT -4. The time now is 03:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy