Hi everybody! :) :D :D :)
it's great to be here since this is my first post.
touch /base/oracle/FRA/XMUT00/RMAN_FLAG
touch /base/oracle/FRA/XRLL00/RMAN_FLAG
find directory name containing RMAN_FLAG :
$ find /base/oracle/FRA -name RMAN_FLAG -print|xargs -n1 dirname |sort -u... (3 Replies)
machine: HPUX
file: a.dat
contents:
decimal 1
decimal 2
string 1
string 2
ASCII value of 'd': 100.
to grep lines that have 'd', I use the following command
grep d a.dat
My requirement:
I should grep for lines that contain 'd'. But I should use ASCII value of 'd' in the command... (1 Reply)
Hi...
I have a file abc.txt , havin more then 10,000 lines, each field separated by '#'.
I want to grep 9914699895 and 999 from abc.txt
I am trying
cat abc.txt | grep 9914699895 | grep 999
but i am also getting data like 9991111111 or 9991010101
I want to grep "999" exactly and... (1 Reply)
I want to search files (basically .cc files) in /xx folder and subfolders.
Those files (*.cc files) must contain #include "header.h" AND x() function.
I am writing it another way to make it clear,
I wanna list of *.cc files that have 'header.h' & 'x()'. They must have two strings, header.h... (2 Replies)
Hi,
I will use below command for grep single string ("osuser" is search string)
ex: find . -type f | xarg grep -il osuser
but i have one more string "v$session"
here i want to grep in which file these two strings are present.
any help is appreciated,
Thanks in advance.
Gagan (2 Replies)
Hi
I'm sure there's a way to do this, but I ran out of caffeine/talent before getting the answer in a long winded alternate way (don't ask ;) )
The task I was trying to do was scan a directory of files and show only files that contained 3 values:
I940
5433309
2181
I tried many variations... (4 Replies)
Hi, every one!
I have a file with multiple strings.
file1
ATQRGNE
ASQGVKFTE
ASSQYRDRGGLET
SPEQGARSDE
ASSRDFTDT
ASSYSGGYE
ASSYTRLWNTGE
ASQGHNTD
PSLGGGNQPQH
SLDRDSYNEQF
I want to grep each string in hundreds of files in the same directory, further, I want to find out the string... (7 Replies)
Hi,
I want to grep multiple patterns from multiple files and save to multiple outputs. As of now its outputting all to the same file when I use this command.
Input : 108 files to check for 390 patterns to check for. output I need to 108 files with the searched patterns.
Xargs -I {} grep... (3 Replies)
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Hello,
I would like to ask for help with csh script.
An example of an input in .txt file is below, the number of lines varies from file to file and I have 2 or 3 columns with values. I would like to read all the values (probably one by one) and set them to independent unique variables that... (7 Replies)
Discussion started by: FMMOLA
7 Replies
LEARN ABOUT DEBIAN
term::size::any
Term::Size::Any(3pm) User Contributed Perl Documentation Term::Size::Any(3pm)NAME
Term::Size::Any - Retrieve terminal size
SYNOPSIS
# the traditional way
use Term::Size::Any qw( chars pixels );
($columns, $rows) = chars *STDOUT{IO};
($x, $y) = pixels;
DESCRIPTION
This is a unified interface to retrieve terminal size. It loads one module of a list of known alternatives, each implementing some way to
get the desired terminal information. This loaded module will actually do the job on behalf of "Term::Size::Any".
Thus, "Term::Size::Any" depends on the availability of one of these modules:
Term::Size (soon to be supported)
Term::Size::Perl
Term::Size::ReadKey (soon to be supported)
Term::Size::Win32
This release fallbacks to Term::Size::Win32 if running in Windows 32 systems. For other platforms, it uses the first of Term::Size::Perl,
Term::Size or Term::Size::ReadKey which loads successfully. (To be honest, I disabled the fallback to Term::Size and Term::Size::ReadKey
which are buggy by now.)
FUNCTIONS
The traditional interface is by importing functions "chars" and "pixels" into the caller's space.
chars
($columns, $rows) = chars($h);
$columns = chars($h);
"chars" returns the terminal size in units of characters corresponding to the given filehandle $h. If the argument is omitted,
*STDIN{IO} is used. In scalar context, it returns the terminal width.
pixels
($x, $y) = pixels($h);
$x = pixels($h);
"pixels" returns the terminal size in units of pixels corresponding to the given filehandle $h. If the argument is omitted, *STDIN{IO}
is used. In scalar context, it returns the terminal width.
Many systems with character-only terminals will return "(0, 0)".
SEE ALSO
It all began with Term::Size by Tim Goodwin. You may want to have a look at:
Term::Size
Term::Size::Perl
Term::Size::Win32
Term::Size::ReadKey
BUGS
Please reports bugs via CPAN RT, via web http://rt.cpan.org/NoAuth/Bugs.html?Dist=Term-Size-Any or e-mail to bug-Term-Size-Any@rt.cpan.org.
AUTHOR
Adriano R. Ferreira, <ferreira@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2008 by Adriano R. Ferreira
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-21 Term::Size::Any(3pm)