Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support How to convert the following characters in some fields in a csv file? Post 302926769 by bharat1211 on Thursday 27th of November 2014 12:40:22 AM
Old 11-27-2014
Yes U can combine.....
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to work with fields of a csv file?

I need to insert data into a perticular field of a csv file, lets say second field. Can any one help me to do this? I found that we can do it with sed. can any one guide me to accomplish this? thanks in advance. (12 Replies)
Discussion started by: praveen_b744
12 Replies

2. Shell Programming and Scripting

how to convert fields from a text file to excel columns

i have this file which has the following contents: ,-0.3000 ,-0.3000 ,-0.3000 ,-0.9000 ,-0.9000 ,-0.9000 i would like to get this: -0.3-0.9-0.3-0.9-0.3-0.9 so far i am trying: awk '{for(i=1; i<=NF; i++) {printf("%f\n",$i)}}' test1 > test2 any help... (4 Replies)
Discussion started by: npatwardhan
4 Replies

3. Programming

convert text file to csv

hi all, i have a select query that gives me the output in the following way... SYSTYPE -------------------------------------------------------------------------------- Success Failures Total RFT ---------- ---------- ---------- ---------- TYP 1 0 ... (3 Replies)
Discussion started by: sais
3 Replies

4. Shell Programming and Scripting

Convert the below file to csv format

Hi , i want to change this question, i will post soon.. (6 Replies)
Discussion started by: srikanth2567
6 Replies

5. Shell Programming and Scripting

pulling different fields from a csv file

Hi, I have a requirment where I need to pull different columns from a .csv file. Here is the sample of the csv file. account,item,flag1,flag2,flag3,flag4,flag5,......feed,tran I will be have a config.txt file which will have the following information. item,flag5,flag10,feed,tran... (2 Replies)
Discussion started by: akdevula
2 Replies

6. Shell Programming and Scripting

How to convert a xls file to csv?

Hi, My requirement is to convert the xls to csv file with utf-8 conversion. Is there any way please suggest me. Thanks, Raja (4 Replies)
Discussion started by: cnraja
4 Replies

7. Shell Programming and Scripting

Convert file in csv or table

Hi there, i have a file like that in attachment (PLEVA3_280711_SAP.txt), i would extract some basic information from it and report in a new file or table like this: i try to use bash and i extract the single object in this way (see attach scriptino.sh), but i receive a strange... (5 Replies)
Discussion started by: alen192
5 Replies

8. Shell Programming and Scripting

Newline characters in fields of a file

My source file is pipe delimeted file with 53 fields.In 33 rd column i am getting mutlple new line characters,dule to that record is breaking into multiple records. Note : here record delimter also \n sample Source file with 6 fields : 1234|abc| \nabcd \n bvd \n cde \n |678|890|900\n ... (6 Replies)
Discussion started by: lakshmi001
6 Replies

9. Shell Programming and Scripting

Inserting new fields to a csv file

hi I have a csv file with few rows > cat job_stat 1,jobname1,somthing,somthing 2,jobname2,somthing,somthing 3,jobname3,somthing,somthing 4,jobname4,somthing,somthing I want to add few columns after the 2nd column and then append rest of the columns after the 3rd newly added... (3 Replies)
Discussion started by: midhun19
3 Replies

10. UNIX for Dummies Questions & Answers

Convert flat file to csv

Hi I have a file like this: a=1 b=2 c=3 a=4 b=2 d=3 a=3 c=4 How can I change this to csv format a,b,c,d 1,2,3,, 4,2,,3 3,,4,, Please use code tags next time for your code and data. Thanks (10 Replies)
Discussion started by: sandip_2014
10 Replies
Imager::Fill(3pm)					User Contributed Perl Documentation					 Imager::Fill(3pm)

NAME
Imager::Fill - general fill types SYNOPSIS
use Imager; use Imager::Fill; my $fill1 = Imager::Fill->new(solid=>$color, combine=>$combine); my $fill2 = Imager::Fill->new(hatch=>'vline2', fg=>$color1, bg=>$color2, dx=>$dx, dy=>$dy); my $fill3 = Imager::Fill->new(fountain=>$type, ...); my $fill4 = Imager::Fill->new(image=>$img, ...); my $fill5 = Imager::Fill->new(type => "opacity", other => $fill, opacity => ...); DESCRIPTION
Creates fill objects for use by most filled area drawing functions. All fills are created with the new method. new my $fill = Imager::Fill->new(...); The parameters depend on the type of fill being created. See below for details. The currently available fills are: o solid o hatch o fountain (similar to gradients in paint software) Common options combine The way in which the fill data is combined with the underlying image. See "Combine Types" in Imager::Draw. In general colors can be specified as Imager::Color or Imager::Color::Float objects. The fill object will typically store both types and convert from one to the other. If a fill takes 2 color objects they should have the same type. Solid fills my $fill = Imager::Fill->new(solid=>$color, $combine =>$combine) Creates a solid fill, the only required parameter is "solid" which should be the color to fill with. Hatched fills my $fill = Imager::Fill->new(hatch=>$type, fg=>$fgcolor, bg=>$bgcolor, dx=>$dx, $dy=>$dy); Creates a hatched fill. You can specify the following keywords: hatch The type of hatch to perform, this can either be the numeric index of the hatch (not recommended), the symbolic name of the hatch, or an array of 8 integers which specify the pattern of the hatch. Hatches are represented as cells 8x8 arrays of bits, which limits their complexity. Current hatch names are: o "check1x1", "check2x2", "check4x4" - checkerboards at various sizes o "vline1", "vline2", "vline4" - 1, 2, or 4 vertical lines per cell o "hline1", "hline2", "hline4" - 1, 2, or 4 horizontal lines per cell o "slash1", "slash2" - 1 or 2 / lines per cell. o "slosh1", "slosh2" - 1 or 2 lines per cell o "grid1", "grid2", "grid4" - 1, 2, or 4 vertical and horizontal lines per cell o "dots1", "dots4", "dots16" - 1, 4 or 16 dots per cell o "stipple", "stipple2" - see the samples o "weave" - I hope this one is obvious. o "cross1", "cross2" - 2 densities of crosshatch o "vlozenge", "hlozenge" - something like lozenge tiles o "scalesdown", "scalesup", "scalesleft", "scalesright" - Vaguely like fish scales in each direction. o "tile_L" - L-shaped tiles * "fg", "bg" - The "fg" color is rendered where bits are set in the hatch, and the "bg" where they are clear. If you use a transparent "fg" or "bg", and set combine, you can overlay the hatch onto an existing image. "fg" defaults to black, "bg" to white. * "dx", "dy" - An offset into the hatch cell. Both default to zero. You can call Imager::Fill->hatches for a list of hatch names. Fountain fills my $fill = Imager::Fill->new(fountain=>$ftype, xa=>$xa, ya=>$ya, xb=>$xb, yb=>$yb, segments=>$segments, repeat=>$repeat, combine=>$combine, super_sample=>$super_sample, ssample_param=>$ssample_param); This fills the given region with a fountain fill. This is exactly the same fill as the "fountain" filter, but is restricted to the shape you are drawing, and the fountain parameter supplies the fill type, and is required. Image Fills my $fill = Imager::Fill->new(image=>$src, xoff=>$xoff, yoff=>$yoff, matrix=>$matrix, $combine); Fills the given image with a tiled version of the given image. The first non-zero value of "xoff" or "yoff" will provide an offset along the given axis between rows or columns of tiles respectively. The matrix parameter performs a co-ordinate transformation from the co-ordinates in the target image to the fill image co-ordinates. Linear interpolation is used to determine the fill pixel. You can use the Imager::Matrix2d class to create transformation matrices. The matrix parameter will significantly slow down the fill. Opacity modification fill my $fill = Imager::Fill->new(type => "opacity", other => $fill, opacity => 0.25); This can be used to make a fill that is a more translucent or opaque version of an existing fill. This is intended for use where you receive a fill object as a parameter and need to change the opacity. Parameters: o type => "opacity" - Required o other - the fill to produce a modified version of. This must be an Imager::Fill object. Required. o opacity - multiplier for the source fill opacity. Default: 0.5. The source fills combine mode is used. OTHER METHODS
Imager::Fill->hatches A list of all defined hatch names. Imager::Fill->combines A list of all combine types. FUTURE PLANS
I'm planning on adding the following types of fills: o "checkerboard" - combines 2 other fills in a checkerboard o "combine" - combines 2 other fills using the levels of an image o "regmach" - uses the transform2() register machine to create fills AUTHOR
Tony Cook <tony@develop-help.com> SEE ALSO
Imager(3) perl v5.14.2 2011-06-06 Imager::Fill(3pm)
All times are GMT -4. The time now is 11:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy