04-15-2005
Grep doubt
Hi,
I have one txt file as bellow:
Inspector logging xxxxx xxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx Inspector logging xxxxxxxxxxxxxx
xxxxxxxxx xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx Inspector loggingxxxxxxxxxxxxxxx
Inspector logging xxxxx xxxxxxxxxxxxxxxxxxxxxxxx
I want to grep only first and 5th line of above txt file.
How to gerp using "Inspector logging" as pattern?
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
i am new shell scripting.
I have a file like this,
$ cat myfile
;/abc/abc.cpp@@/main/1;xyz
;/abc/abc.cpp@@/main/2;usr2
;/abc/abc.cpp@@/main/1;abc
;/abc/abc.cpp@@/main/2;usr2
;/abc/abc.cpp@@/main/1;usr1
when i grep the file.
$ grep "abc" myfile... (8 Replies)
Discussion started by: tsaravanan
8 Replies
2. Shell Programming and Scripting
shudnt this command :
grep test
give all the lines which do not hv 'C'. ^ wrks as negating character inside square brackets right ???
bt in my case grep is printin all the line in the file
also wht does
grep c+ test & grep c? test
shud do ??? (4 Replies)
Discussion started by: evergreen_cool
4 Replies
3. Shell Programming and Scripting
Hi
I need to grep a particular world like and redirect into a temporary file .But while iam grepping some unwanted data are aslo coming like .ex In a FILE all these TABLENAMES are present .
module_table1,module_table2, module_table3,module_table5, module_table1_temp , module_table2_temp... (9 Replies)
Discussion started by: mani_isha
9 Replies
4. UNIX for Advanced & Expert Users
in my parition i hav parition like this
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 24G 22G 756M 97% /
/dev/sda5 248G 1.2G 234G 1% /else
/dev/sda1 965M 24M 892M 3% /boot
tmpfs 7.0G 0 7.0G 0%... (1 Reply)
Discussion started by: ponmuthu
1 Replies
5. UNIX for Dummies Questions & Answers
Hi ,
Struck with one basic question.
Iam expecting word count of 4 where "wc" is showing as 5 .
# echo "abcd" | wc
1 1 5
# echo abcd | wc
1 1 5 (5 Replies)
Discussion started by: penchal_boddu
5 Replies
6. Red Hat
How to create a file with specific size in RHEL6 (1 Reply)
Discussion started by: Sashi Kanth A
1 Replies
7. Shell Programming and Scripting
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
8. Shell Programming and Scripting
Hi all,
I need to find the line by using grep command with the two occurence of word in the same line. I tried the below example it prints the word choice.
cat nohup.out
Dictionary utl is completed.
file is completed.
Dictionary file is completed.
grep 'Dictionary\|file'... (0 Replies)
Discussion started by: arun888
0 Replies
LEARN ABOUT MOJAVE
class::inspector::functions5.18
Class::Inspector::Functions(3) User Contributed Perl Documentation Class::Inspector::Functions(3)
NAME
Class::Inspector::Functions - Get information about a class and its structure
SYNOPSIS
use Class::Inspector::Functions;
# Class::Inspector provides a non-polluting,
# method based interface!
# Is a class installed and/or loaded
installed( 'Foo::Class' );
loaded( 'Foo::Class' );
# Filename related information
filename( 'Foo::Class' );
resolved_filename( 'Foo::Class' );
# Get subroutine related information
functions( 'Foo::Class' );
function_refs( 'Foo::Class' );
function_exists( 'Foo::Class', 'bar' );
methods( 'Foo::Class', 'full', 'public' );
# Find all loaded subclasses or something
subclasses( 'Foo::Class' );
DESCRIPTION
Class::Inspector::Functions is a function based interface of Class::Inspector. For a thorough documentation of the available functions,
please check the manual for the main module.
Exports
The following functions are exported by default.
installed
loaded
filename
functions
methods
subclasses
The following functions are exported only by request.
resolved_filename
loaded_filename
function_refs
function_exists
All the functions may be imported using the ":ALL" tag.
SUPPORT
Bugs should be reported via the CPAN bug tracker
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Class-Inspector>
For other issues, or commercial enhancement or support, contact the author.
AUTHOR
Adam Kennedy <adamk@cpan.org>
Steffen Mueller <smueller@cpan.org>
SEE ALSO
<http://ali.as/>, Class::Handle
COPYRIGHT
Copyright 2002 - 2012 Adam Kennedy.
Class::Inspector::Functions copyright 2008 - 2009 Steffen Mueller.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.18.2 2012-10-19 Class::Inspector::Functions(3)