I have following entries in a file.
I want to toggle the entry of 2nd column. TRUE/FALSE
i tried using
but the problem is, if instead of "tab" space after 1st column, there is a character or multi character space then this won't work.
Entries in the below file is like:
Pls help, if i can use any other editor "sed", "awk" etc.(but i am not too familiar with these)
Hi all,
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
sed '$a\
hi...
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
I have several files that are being generated every 20 minutes. Each file contains 2 columns. The 1st column is Text, 2nd column is Data.
I would like to generate one single file from all these files as follows:
One instance of 1st column Text, followed by 2nd column Data separated by... (5 Replies)
Hi friends,
My file is like:
Second file is :
I need to print the rows present in file one, but in order present in second file....I used
while read gh;do
awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile
done < secondfile
but the output I am... (14 Replies)
Hi All,
Please help i have written an ksh script, where i am actually take count of lines in one file and want to update this count to 2nd field of a new file and apend the this into an existing file.
Note the below script is in for loop
-------- I am apending few records in a file... (7 Replies)
Hi Gurus,
I have file content sample:
,5113955056,,TAgent-Suspend
,5119418233,,TAgent-Suspend
,5102119078,,TAgent-Suspend
filenames 120229H5_suspend, 120229H6_unsuspend
I receive those files one of directory /home/temp/
I need following:
1. Backup first /home/temp/ file to... (5 Replies)
I have following entries file abc.txt
abc83.out.remote TRUE
abc84.out.remote TRUE
abc85.out.remote TRUE
abc86.out.remote TRUE
Please help me, how do i toggle the entries listed in 2nd column based on the search patterns (abcxx)
abcxx, i can get... (14 Replies)
I have a csv file formatted like this:
2014-08-21 18:06:26,A,B,12345,123,C,1232,26/08/14 18:07and I'm trying to change it to MM/DD/YYYY HH:MM for both occurances.
I have got this:
awk -F, 'NR <=1 {print;next}{"date +%d/%m/%Y\" \"%H:%m -d\""$1 "\""| getline dte;$1=dte}1' OFS="," test.csvThis... (6 Replies)
hi
I have 2 file with more than 10 columns for both
1st file
apple,0,0,0......
orange,1,2,3.....
mango,2,4,5.....
2nd file
apple,2,3,4,5,6,7...
orange,2,3,4,5,6,8...
watermerlon,2,3,4,5,6,abc...
mango,5,6,7,4,6,def.... (1 Reply)
Discussion started by: tententen
1 Replies
LEARN ABOUT DEBIAN
pngdriver
pngdriver(1grass) Grass User's Manual pngdriver(1grass)NAME
PNG driver - driver to create PNG and PPM images.
(drivers)
DESCRIPTION
The PNG driver generates PNG and PPM images from GRASS display commands. Per default PNG files are written with this driver. It is started
as 'pseudo' monitor (image file instead) and when stopped, all output from previously used display commands are written to the PNG image
file.
USAGE
Environment variables
Several environment variables effect the operation of the PNG driver.
GRASS_WIDTH=xxx
the width of the image map (default is 640).
GRASS_HEIGHT=yyy
the height of the image map (default is 480).
GRASS_PNGFILE=filename
the filename to put the resulting image in, default is map.png. If you set GRASS_PNGFILE to a filename which ends in ".ppm", a PPM
file will be created (with alpha channel stored in a PGM image, if applicable). If you set GRASS_PNGFILE to a filename which ends
in ".bmp", a 32-bpp BMP file will be created (these are not readable by some older viewers).
GRASS_BACKGROUNDCOLOR=RRGGBB
specifies the background color to use in RGB notation (hex values). Default is 000000 (black).
GRASS_TRANSPARENT=[TRUE|FALSE]
sets transparent background on (TRUE) or off (FALSE, default).
GRASS_TRUECOLOR=[TRUE|FALSE]
sets true-color support
GRASS_PNG_COMPRESSION=[0|1|9]
compression level of PNG files (0 = none, 1 = fastest, 9 = best, default is 6)
GRASS_PNG_AUTO_WRITE=[TRUE|FALSE]
if set to TRUE, the image file will be written after each operation (i.e. whenever a client disconnects), rather than only being
written out when the driver terminates.
GRASS_PNG_READ
if TRUE, the PNG driver will initialize the image from the contents of GRASS_PNGFILE.
GRASS_PNG_MAPPED
if TRUE, the PNG driver will map GRASS_PNGFILE as its framebuffer, rather than using memory. This only works with BMP files.
GRASS_RENDER_IMMEDIATE=[TRUE|FALSE]
tells the raster library to use its built-in PNG driver rather than connecting to an external monitor process using sockets. If
TRUE, there is no need to run d.mon start=PNG.
Example
Define driver settings (here: bash shell syntax)
export GRASS_RENDER_IMMEDIATE=TRUE
export GRASS_TRUECOLOR=TRUE
Start up the driver
d.mon start=PNG
Display raster map and vector polygons
d.rast somerastermap
d.vect somevectormap color=red
Stop the driver subsequently. This will write a file named map.png to be created in your current directory:
d.mon stop=PNG
NOTES
The PNG driver uses the libpng (see the libpng home page) and zlib (see the zlib home page), all which needs to be installed for the PNG
driver to work (it's worth it).
The resolution of the PNG raster map is defined by the map extents. Use g.region -p to get the number of rows and cols and use the environ-
ment variables to set the PNG size. If you would like a larger image, multiply both rows and cols by the same whole number to preserve the
aspect ratio.
Further PNG file processing (e.g. quantization to 1 bit for monochrome images) can be done with 'pnmquant' of the netpbm tools.
SEE ALSO
Display drivers
HTMLMAP driver, PostScript driver, XDRIVER
d.frame, d.mon, d.rast, d.vect
AUTHOR
Original version: Per Henrik Johansen NORGIT AS
Rewritten by: Glynn Clements, 2003
Last changed: $Date: 2010-02-18 01:23:37 +0100 (Thu, 18 Feb 2010) $
Full index
(C) 2003-2011 GRASS Development Team
GRASS 6.4.2pngdriver(1grass)