:confused: I have a tab delimited file that I need to extract data from and into a file with specific field specs. Each field has to be a certain amount of characters. So, the name field (from delimited file) might have only 15 characters but needs to be 25 (in new file) so I need to insert spaces... (5 Replies)
Hi,
I got a long list of contents:
>sequence_1
ASSSSSSSSSSSDDDDDDDDDDDCCCCCCC
ASDSFDFFDFDFFWERERERERFSDFESFSFD
>sequence_2
ASDFDFDFFDDFFDFDSFDSFDFSDFSDFDSFASDSADSADASD
ASDFFDFDFASFASFASFAFSFFSDASFASFASFAFS
>sequence_3
VEDFGSDGSDGSDGSDGSDGSDGSDG
dDFSDFSDFSDFSDFSDFSDFSDFSDF... (2 Replies)
Input file:
#abc_1
SAASFASFGGDSGDSGDSGSDGSDGSDGSDGSDGSDGSDGDS
Output file:
FASFGGDSGDS
I just want to print out the read from position 5 until position 15 from the data.
Below is the code that I just try but it is failed to get my desired output:
grep -v '#' input_file | awk... (5 Replies)
Hi Friends,
One question.
Supposed I want to extract data only for process named "sqlplus" how can I do it. Any suggestions?
I don't want all the data as it is not useful to me e.g.. Command I use is given below
extract -xp -p -r repfile -b"03/15/13 7:00 PM" -e"03/15/13 09:30 PM" -f... (1 Reply)
Bash scripting beginner here...
I have many folders, each folder representing one subject. Not all subjects have all the required files, so I need to somehow cycle through all the data and then extract the data only from subjects who have no files missing. I tried to output the ls command, but... (4 Replies)
data.txt has several information like the below..
<SERVER>:WEB:MYDOM01:/tmp/cong/MYDOM01,/tmp/app/MYDOM01
<WEBER>:CANES:https-web01,https-web02:/web/apps/https-web01/config
<SERVER>:WEB:MYDOM07:/tmp/cong/MYDOM07,/tmp/app/MYDOM07... (7 Replies)
Discussion started by: mohtashims
7 Replies
LEARN ABOUT DEBIAN
data::stag::writer
Data::Stag::Writer(3pm) User Contributed Perl Documentation Data::Stag::Writer(3pm)NAME
Data::Stag::Writer - base class for all Writers
SYNOPSIS
# Abstract class - do not use directly
package MyOutputter;
use base qw(Data::Stag::Writer);
sub e_foo {
my ($self, $foo) = @_;
$self->writef("data1: %s
", $foo->get_data1);
return;
}
DESCRIPTION
base mixin class for all writers
INHERITANCE
This inherits from L<Data::Stag::BaseHandler>
PUBLIC METHODS -
new
Title: new
Args: [fn str], [fh FILEHANDLE]
Return: L<Data::Stag::BaseHandler>
Example: $w = MyWriter->new(-fh=>$fh);
returns the tree that was built from all uncaught events
file
Title: file
Args: filename str
Returns: filename str
Example: $handler->file("my_output_file.txt");
Setting this will cause all output to be diverted to this file; the file will be overwritten by default. The filehandle will not be opened
unless any events are thrown
For more fine-grained control, use $handler->fh()
fh
Title: fh
Args: filehandle FH
Returns: filehandle FH
Example: $handler->fh(*STDOUT);
Gets/Sets the output filehandle for the writer
safe_fh
Title: safe_fh
Type: PROTECTED
Args: filehandle FH
Returns: filehandle FH
Example: $handler->fh(*STDOUT);
As fh(), but makes sure that the filehandle is initialized
You should use this if you are overriding this class
write
Title: write
Type: PROTECTED
Args: message str
Returns:
Example: $self->write($stag->get_blah);
writes output
to be used by classes that subclass this one
writef
Title: writef
As write, analagous to printf
use_color
Usage -
Returns -
Args -
perl v5.10.0 2008-12-23 Data::Stag::Writer(3pm)