e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks,
Hello Tanu,
Welcome to forums, please use code tags for commands/cods/Inputs as per forum rules. Following may help you in same.
Thanks,
R. Singh
hi,,
i hav a file with many lines.i need to remove all lines before a line begginning with a specific pattern from the file because these lines are not required.
Can u help me out with either a perl script or shell script
example:-
if file initially contains lines:
a
b
c
d
.1.2
d
e
f... (2 Replies)
Hi Folks,
I got to know from this forums on how to grep from a particular line say line 6
awk 'NR==6 {print;exit}'
But how do i grep from line 6 till the end of the file or command output.
Thanks, (3 Replies)
Hi All,
I have a .txt file with some contents as below:
Hi How are you?
# Fine and you?
I want a script file which reads the .txt file and output the lines which does not start with #.
Hi How are you?
Help is highly appreciated.
Please use code tags when posting data and... (5 Replies)
Hello,
I have a command that show some application information. Now, I have to grep there informations, like:
# showlog | grep 1266
1266.1369866124 ::
1266.1304711286 ::
41031.1161812668 ::
41078.1301266480 ::
41641.712662564 ::
1266.333792515 ::
41462.1512661988 ::
1266.54932671... (5 Replies)
Here is the task that I was presented with:
I am dealing with about a 10,000 line input deck file for an analysis. About 10 separate blocks of around 25 lines of code each need to be updated in the input deck.
The input deck (deckToChange in the code below) comes with 2 separate files. File 1... (5 Replies)
Hi,
I want to read a file line by line and exclude the lines that are beginning with special characters. The below code is working fine except when the line starts with hyphen (-) in the file.
for TEST in `cat $FILE | grep -E -v '#|/+' | awk '{FS=":"}NF > 0{print $1}'`
do
.
.
done
How... (4 Replies)
Hello,
I'm works on Ubuntu server
My goal : I would like to read file line per line, but i want to started at the end of file.
Currently, I use instructions :
while read line;
do
COMMAND
done < /var/log/apache2/access.log
But, the first line, i don't want this. The file is long... (5 Replies)
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)
Shell : bash
OS : RHEL 6.8
I have a file like below.
$ cat pattern.txt
hello
txt1
txt2
txt3
some other text
txt4
I want to remove all lines in this file except the ones starting with txt . How can I do this ? (4 Replies)
Discussion started by: omega3
4 Replies
LEARN ABOUT DEBIAN
file::find::object::result
File::Find::Object::Result(3pm) User Contributed Perl Documentation File::Find::Object::Result(3pm)NAME
File::Find::Object::Result - a result class for File::Find::Object
DESCRIPTION
This is a class returning a single File::Find::Object result as returned by its next_obj() method.
METHODS
File::Find::Object::Result->new({%args});
Initializes a new object from %args. For internal use.
$result->base()
Returns the base directory from which searching began.
$result->path()
Returns the full path of the result. As such "$ffo->next_obj()->path()" is equivalent to "$ffo->next()" .
$result->is_dir()
Returns true if the result refers to a directory.
$result->is_file()
Returns true if the result refers to a plain file (equivalent to the Perl "-f" operator).
$result->is_link()
Returns true if the result is a symbolic link.
$result->dir_components()
The components of the directory part of the path starting from base() (also the full path if the result is a directory) as an array
reference.
$result->basename()
Returns the basename of the file (if it is a file and not a directory.) Otherwise - undef().
$result->full_components()
Returns the full components of the result with the basename if it is a file.
$result->stat_ret()
The return value of "stat" in perlfunc for the result, placed inside an array reference. This is calculated by File::Find::Object and kept
here for convenience and for internal use.
SEE ALSO
File::Find::Object
LICENSE
Copyright (C) 2005, 2006 by Olivier Thauvin
This package is free software; you can redistribute it and/or modify it under the following terms:
1. The GNU General Public License Version 2.0 - http://www.opensource.org/licenses/gpl-license.php
2. The Artistic License Version 2.0 - http://www.perlfoundation.org/legal/licenses/artistic-2_0.html
3. At your option - any later version of either or both of these licenses.
perl v5.10.0 2009-06-18 File::Find::Object::Result(3pm)