First thing is that you have a logic problem.
you're saying "until" $pst,
the you read & set dump, and then don't reset what pst is??
How would that ever work??
Hi, im have log file ~100000 lines,
192.168.29.1 at 10/08/09 13:58:55
192.168.60.1 at 10/08/09 14:11:28
192.168.58.171 at 10/08/09 14:12:45
192.168.61.12 at 10/08/09 14:15:44
192.168.60.1 at 10/08/09 14:16:36
192.168.60.1 at 10/08/09 14:17:43
192.168.61.12 at 10/08/09 14:18:08... (9 Replies)
Hi
I have files with names that contain the date in several formats as, YYYYMMDD, DD-MM-YY,DD.MM.YY or similar combinations.
I know if a file fits in one pattern or other, but i donīt know how to extract the substring contained in the file that matches the pattern.
For example, i know that
... (1 Reply)
unix program to which a directory name will be passed as
parameter. This directory will contain files with various
extensions. This script will create directories with the names of the
extention of the files and then put the files in the
corresponding folder. All files which do not have any... (2 Replies)
I am using grep to match a pattern, but the output is strange.
$ grep -r -o "pattern" *
Gives me:
Binary file foo1 matches
Binary file foo2 matches
Binary file foo3 matches
To find the lines before/after, I then have to use the following on each file:
$ strings foo1 | grep -A1 -B1... (0 Replies)
Hello,
I try to script something (bash-script) and can not find a way to get and store a match into a variable from a line in a file. grep isn't useful as the matches are not returned - just colored. I can't get 'expr' to work for me. Is it necessary to use a perl-script with regex instead?
... (7 Replies)
Hi all,
I have two files, chap.txt and complex.txt.
chap.txt looks like this:
a
d
l
m
r
k
complex.txt looks like this:
a c d e l m n j
a d l p q r
c p r m
......... (7 Replies)
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Hi,
I am trying to write a script where I need to pull any file if the date is from yesterday. Can you please help me on how to check the dates for the files on the remote server?
Please let me know for any questions.
Thanks
Ajay (4 Replies)
i had requirement like i need to get "error" line of above 3 and below 3 from a file .I tried with the below script.But it's not working.
y='grep -n -i error /home/file.txt|cut -c1'
echo $y
head -$y /home/file.txt| tail -3 >tmp.txt
tail -$y /home/file.txt head -3 >>tmp.txt (4 Replies)
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies
LEARN ABOUT DEBIAN
coro::storable
Storable(3pm) User Contributed Perl Documentation Storable(3pm)NAME
Coro::Storable - offer a more fine-grained Storable interface
SYNOPSIS
use Coro::Storable;
DESCRIPTION
This module implements a few functions from the Storable module in a way so that it cede's more often. Some applications (such as the
Deliantra game server) sometimes need to load large Storable objects without blocking the server for a long time.
This is being implemented by using a perlio layer that feeds only small amounts of data (4096 bytes per call) into Storable, and
"Coro::cede"'ing regularly (at most 100 times per second by default, though).
As Storable is not reentrant, this module also wraps most functions of the Storable module so that only one freeze or thaw is done at any
one moment (and recursive invocations are not currently supported).
FUNCTIONS
$ref = thaw $pst
Retrieve an object from the given $pst, which must have been created with "Coro::Storable::freeze" or
"Storable::store_fd"/"Storable::store" (sorry, but Storable uses incompatible formats for disk/mem objects).
This function will cede regularly.
$pst = freeze $ref
Freeze the given scalar into a Storable object. It uses the same format as "Storable::store_fd".
This functino will cede regularly.
$pst = nfreeze $ref
Same as "freeze" but is compatible to "Storable::nstore_fd" (note the "n").
$pst = blocking_freeze $ref
Same as "freeze" but is guaranteed to block. This is useful e.g. in "Coro::Util::fork_eval" when you want to serialise a data structure
for use with the "thaw" function for this module. You cannot use "Storable::freeze" for this as Storable uses incompatible formats for
memory and file images, and this module uses file images.
$pst = blocking_nfreeze $ref
Same as "blocking_freeze" but uses "nfreeze" internally.
$guard = guard
Acquire the Storable lock, for when you want to call Storable yourself.
Note that this module already wraps all Storable functions, so there is rarely the need to do this yourself.
AUTHOR
Marc Lehmann <schmorp@schmorp.de>
http://home.schmorp.de/
perl v5.14.2 2012-04-13 Storable(3pm)