Assuming there are no spaces in the values itself
(this is my first IFS attempt)
Hope this helps
hi,
testfile doesnot conatin any name like testid release compile execute.
i want these should be columns name in .csv file . after reading txtfile row by row it shouls print those vanlues in columns.
Hi
I have a excel file in unix machine and have to convert it into a .csv file.I have to do this from a unix script.How do we do this?
Thanks
Abhinav (3 Replies)
I have a file in multiple directory which has some records in the following format
File: a/latest.txt , b/latest.txt, c/latest.txt ->
Name=Jhon
Age=27
Gender=M
Street=LA Road
Occupation=Service
I want to generate a csv file from the above file as follows
File: output.csv ->
... (9 Replies)
Hi All,
Following is my requirement. I have searched the site and found some threads which has same queries, but non of them have any answer. I thought of posting it once more.
We are generating different reports through shell script after we finish our data load. Currently there are 7 such... (5 Replies)
In my file, i have 4 Product names(For ex:Microsoft excel, Oracle,.Net,IBM websphere,..etc.,) I want this 4 Products in 4 individual .csv/excel file after running the script with those products related information. (12 Replies)
Hi,
I have a text like the one given below
status="Observation 1"
read1="Source rows not load"
read2="Score drop"
I want to create a csv and mail it out in such a way that all three lines will be in a single cell but as three lines.
For ex
Col C1
... (3 Replies)
Hi I have a dat file which has "n" number of columns. The file is delimited. The number of columns keep varying as the file is generated out of DB queries. Could you please help me in writing a script which will generate a XLS or CSV file out of the dat file. (5 Replies)
I created a script that will go out and so a "/sbin/chkconfig --list | egrep XXX" against a server list that would create an output file like the following example:
----------------------------------------------------------------------------------
SERVER1
RC_Script_1 0:off 1:off 2:off... (4 Replies)
i have written one script which generates text file which gives output like.
001.config: CR1.1 COMPILE_PASSED TEST_PASSED
002.config: CR1.1 COMPILE_FAILED TEST_FAILED
.
.
.so on
this text file will get filled one by one as its for loop for n number.
i... (7 Replies)
Hi Experts,
I am querying backup status results for multiple databases and getting each and every database result in one csv file. so i need to combine all csv files in one excel file with separate tabs. I am not familiar with perl script so i am using shell script.
Could anyone please... (4 Replies)
Hi All ,
I would require your help to generate one output file after post processing of one CSV file as stated below
This file is just a small cut from a big file . Big file is having 20000 lines
PATTERN,pat0,pat1,pat2,pat3,pat4,pat5,pat6,pat7,pat8,pat9... (2 Replies)
Discussion started by: kshitij
2 Replies
LEARN ABOUT DEBIAN
text::micromason::templatedir
MicroMason::TemplateDir(3pm) User Contributed Perl Documentation MicroMason::TemplateDir(3pm)NAME
Text::MicroMason::TemplateDir - Use Base Directory and Relative Paths
SYNOPSIS
Instead of using this class directly, pass its name to be mixed in:
use Text::MicroMason;
my $mason = Text::MicroMason->new( -TemplateDir, template_root=>'/foo' );
Use the standard compile and execute methods to parse and evalute templates:
print $mason->compile( file=>$filepath )->( 'name'=>'Dave' );
print $mason->execute( file=>$filepath, 'name'=>'Dave' );
Templates stored in files are looked up relative to the template root:
print $mason->execute( file=>"includes/greeting.msn", 'name'=>'Charles');
When including other files into a template you can use relative paths:
<& ../includes/greeting.msn, name => 'Alice' &>
DESCRIPTION
This module changes the resolution of files passed to compile() and execute() to be relative to a base directory path or to the currently
executing template.
Supported Attributes
template_root
Base directory from which to find templates.
strict_root
Optional directory beyond which not to read files. If set to 1, uses template_root, Causes read_file to croak if any filename outside
of the root is provided. (Note that this is not a chroot jail and only affects attempts to load a file as a template; for greater
security see the chroot() builtin and Text::MicroMason::Safe.)
Private Methods
prepare
Intercepts uses of file templates and applies the base-path adjustment.
read_file
Intercepts file access to check for strict_root.
EXCEPTIONS
The following additional exceptions are generated by Text::MicroMason::TemplateDir when appropriate:
o Text::MicroMason::TemplateDir: Strict root '%s' doesn't seem to exist
The strict_root directory (or template_root if strict_root is '1') doesn't seem to exist. Strict root checking uses Cwd's abs_path(),
and requires the strict_root directory to exist at the time the check is performed.
o Text::MicroMason::TemplatePath: Template '%s' not in required base path '%s'
The template found in the configured template path was not within the configured strict_root directory. This may be caused by
requesting an absolute template filename not within strict_root, or by specifying a strict_root which does not match the configured
template path.
SEE ALSO
For an overview of this templating framework, see Text::MicroMason.
This is a mixin class intended for use with Text::MicroMason::Base.
For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe.
perl v5.10.1 2009-11-11 MicroMason::TemplateDir(3pm)