08-27-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
i have 2 files file1 and file2 as shown below
file1
110010000000206|567810008161509
110010000000207|567810072227627
110010000000208|567811368851555
110010000000209|567811422513652
110010000000210|567812130217683
110010000000211|567813220211182
110010000000212|567813449322589... (4 Replies)
Discussion started by: PradeepRed
4 Replies
2. UNIX for Dummies Questions & Answers
I'm trying to find a command which will allow me to remove a range of lines (2-4) from a .dat file from the command line without opening the file.
Someone mentioned using the ex command?
Does anyone have any ideas?
thanks (6 Replies)
Discussion started by: computersaysno
6 Replies
3. AIX
Hi Gurus,
I'm a little new to UNIX. How can I do remove the first and last line in a file? Say, supppose I have a file as below:
1DMA
400002BARRIE
401002CALGARY/LETHBRI
402002CARLETON
500001PORTLAND-AUBRN
501001NEW YORK, NY ... (1 Reply)
Discussion started by: naveendronavall
1 Replies
4. Shell Programming and Scripting
Hi Gurus,
I'm a little new to UNIX. How can I do remove the first and last line in a file? Say, supppose I have a file as below:
Code:
1DMA
400002BARRIE
401002CALGARY/LETHBRI
402002CARLETON
500001PORTLAND-AUBRN
501001NEW YORK, NY
502001BINGHAMTON, NY ... (2 Replies)
Discussion started by: naveendronavall
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I'm trying to remove multiple lines of text based off a series of different words and output it to a new file
The document contains a ton of data but i want to delete any line that has the following
mx1.rr.biz.com or ns2.ri.biz.com
i tried using grep -v filename "mx1.rr.biz.com" >... (3 Replies)
Discussion started by: spartan22
3 Replies
6. UNIX for Dummies Questions & Answers
I have a text file with a list of items/patterns:
ConsensusfromCGX_alldays_trimmedcollapsedfilteredreadscontiglist(229095contigs)contig12238
ConsensusfromCGX_alldays_trimmedcollapsedfilteredreadscontiglist(229095contigs)contig34624... (1 Reply)
Discussion started by: Oyster
1 Replies
7. Shell Programming and Scripting
Hi,
I have a linux server that was hacked and I have a bunch of files that sporadically contain the following lines through out the file:
<?php eval(base64_decode("Xxxxxxxxxxxxxx/xxxxxxxx"));
I did't put the exact lines of the file in this post. The "Xxxx" are random letters/numbers.... (8 Replies)
Discussion started by: nck
8 Replies
8. Shell Programming and Scripting
GM,
I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed.
I am assuming that sed, awk or even perl could do what I need.
I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
Discussion started by: jxfish2
7 Replies
9. Shell Programming and Scripting
Hello Gurus,
I have a multiple pipe separated files which have records going over multiple Lines. End of line separator is \n and records going over multiple lines have <CR> as separator. below is example from one file.
1|ABC DEF|100|10
2|PQ
RS
T|200|20
3| UVWXYZ|300|30
4| GHIJKL|400|40... (7 Replies)
Discussion started by: dJHa
7 Replies
10. Shell Programming and Scripting
I have a file `/tmp/wrk` containing filenames with paths. I want to remove filenames
from this file, for example
remove all filenames containing alja cagr cavt clta cmdo or corl
remove all filenames containing data for days in region `d.2016.001` to `d.2016.207`
remove all filenames... (10 Replies)
Discussion started by: kristinu
10 Replies
LEARN ABOUT DEBIAN
text::microtemplate::file
Text::MicroTemplate::File(3pm) User Contributed Perl Documentation Text::MicroTemplate::File(3pm)
NAME
Text::MicroTemplate::File - a file-based template manager
SYNOPSIS
use Text::MicroTemplate::File;
our $mtf = Text::MicroTemplate::File->new(
include_path => [ $path1, $path2, ... ],
use_cache => 1,
);
# render
$mtf->render_file('template.file', $arg1, $arg2, ...);
DESCRIPTION
Text::MicroTemplate::File is a file-based template manager for Text::MicroTemplate.
PROPERTIES
Text::MicroTemplate provides OO-style interface with following properties.
include_path
include path (default: ['.'])
This accessor is readonly.
use_cache
cache mode (0: no cache (default), 1: cache with update check, 2: cache but do not check updates)
open_layer
layer passed to open (default: ":utf8")
package_name
package under where template files are compiled (default: "main")
METHODS
build_file($file)
Returns a subref that renders given template file.
render_file($file, @args)
Renders the template file with given arguments.
wrapper_file($file, @args)->(sub { template lines })
Wraps given template with wrapper file. Internally the processed template is passed as $_[0] to the wrapper template.
SEE ALSO
Text::MicroTemplate
AUTHOR
Kazuho Oku <kazuhooku gmail.com>
LICENSE
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.
perl v5.10.1 2010-09-06 Text::MicroTemplate::File(3pm)