i have this text file name test.txt which contain :
aaaaa bbb
iiiiiiiiiiiii ccf
ddaaa ddd
and i need a script that can print out the line numbers using a while loop..
so when the script is run..it will have this:
1
2
3
any ideas? :) thanks guys (4 Replies)
hi, i have a large text file that I just want to extract the important
information from. It will be a random number of lines but between two specific
line numbers/markers.
I was thinking I could get the line number for the first marker:
Tablespace Percent Total Free
Then get the line... (11 Replies)
Hello,
I have a text file which contains a list of strings which I want to grep from another file where these strings occur and print out only these lines.
I had earlier used the grep command
where File1 was the file containing the strings to be grepped (Source File) and File2 the Target File... (4 Replies)
Hi,
I am trying to extract lines from a text file given a text file containing line numbers to be extracted from the first file. How do I go about doing this? Thanks! (1 Reply)
I have a text file with a line of text that contains numbers and text formatted into groups. I need to extract the number that can be either 1,2 or 3 digits long. Then write it to a variable, but i need to remove any leading spaces in the number first.
I can get the numbers out but how to remove... (12 Replies)
Hi,
I need to number the lines in my text file. I know how to do this with standard numbering (1,2,3,4, etc) but I need to count in multiples of 5, beginning 0,5,10,15...
example existing file:
abcd
efg
hijklm
nopqrs
desired output
0 abcd
5 efg
10 hijklm
15 ... (11 Replies)
Dear All,
I have to solve the following problems with multiple tab-separated text file but I don't know how. Any help would be greatly appreciated. I have access to Linux mint (but not as a professional).
I have multiple tab-delimited files with the following structure:
file1:
1 44
2 ... (5 Replies)
Discussion started by: Bastami
5 Replies
LEARN ABOUT OSX
modperl::perlrun
apache_mod_perl-108~358::mod_perl-2.0.7::docs::api::ModPUser:Contributed Peapache_mod_perl-108~358::mod_perl-2.0.7::docs::api::ModPerl::PerlRun(3)NAME
ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl
Synopsis
# httpd.conf
PerlModule ModPerl::PerlRun
Alias /perl-run/ /home/httpd/perl/
<Location /perl-run>
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
Description
META: document that for now we don't chdir() into the script's dir, because it affects the whole process under threads.
"ModPerl::PerlRunPrefork" should be used by those who run only under prefork MPM.
Special Blocks
"BEGIN" Blocks
When running under the "ModPerl::PerlRun" handler "BEGIN" blocks behave as follows:
o "BEGIN" blocks defined in scripts running under the "ModPerl::PerlRun" handler are executed on each and every request.
o "BEGIN" blocks defined in modules loaded from scripts running under "ModPerl::PerlRun" (and which weren't already loaded prior to the
request) are executed on each and every request only if those modules declare no package. If a package is declared "BEGIN" blocks will
be run only the first time each module is loaded, since those modules don't get reloaded on subsequent requests.
See also "BEGIN" blocks in mod_perl handlers.
"CHECK" and "INIT" Blocks
Same as normal mod_perl handlers.
"END" Blocks
Same as "ModPerl::Registry".
Authors
Doug MacEachern
Stas Bekman
See Also
"ModPerl::RegistryCooker" and "ModPerl::Registry".
perl v5.16.2 2011-02apache_mod_perl-108~358::mod_perl-2.0.7::docs::api::ModPerl::PerlRun(3)