01-03-2017
Thanks Don Cragun and RudiC,
I apologies for not clarifying properly, its exactly how RuiC described.
RudiC your code worked as expected, is there a way to ignore certain columns e.g #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT (from 1-9) thanks again for your code and explanation.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I have a variable, on some machines it is '1024', which is fine, but on others it is '1024Mb' etc. I need this variable to simply be '1024', does anyone know how I could ensure this is always the case? Perhaps a command to remove any letters/characters that aren't integers if there is... (3 Replies)
Discussion started by: hodges
3 Replies
2. UNIX for Dummies Questions & Answers
I need help removing the last character of every line if it is a certain character. For example I need to get rid of a % character if it is in the last position.
Input:
aaa%
%bbb
ccc
d%dd%
Output should be:
aaa
%bbb
ccc
d%dd
I tried this but it gets rid of all of the % characters.... (5 Replies)
Discussion started by: raptor25
5 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I am having a bit of a hard time using awk. I must do something wrong, but I don't know what... Any help would be greatly appreciated!
I read a file, as follows :...
ATOM 21 C THR A 4 23.721 -26.194 1.909 1.00 32.07 C
ATOM 22 O THR A 4 ... (2 Replies)
Discussion started by: hypsis
2 Replies
4. Shell Programming and Scripting
i have this problem:
i must hide a string with a character such as _ by command
WORD=string;
XXX=`echo $WORD | sed 's//_/g'
but after, users must send in input a character and i must to replace the _ with the input character or better i can do this
-$CHARS_INPUT
i have think to use command... (3 Replies)
Discussion started by: tafazzi87
3 Replies
5. UNIX for Dummies Questions & Answers
I have a text file that has three columns. But at the end of the text file, there are trailing lines that have missing second and third columns:
4 0.04972604 KLHL28
4 0.0497332 CSTB
4 0.04979822 AIF1
4 0.04983331 DECR2
4 0.04990344 KATNB1
4
4
4
4
How can I remove the trailing... (3 Replies)
Discussion started by: evelibertine
3 Replies
6. Shell Programming and Scripting
hi, I have quite a bunch of files with annoyingly long filenames. I wanted to cut the range of characters from 9-18 and just retain the first 8 characters and the .extension. any suggestion how to do it. thanks much.
original filename: 20000105_20000105_20100503.nc.asc
output filename:... (4 Replies)
Discussion started by: ida1215
4 Replies
7. Shell Programming and Scripting
Hi,
I columns with both number and letters however i need the number 4 trimmed off the lines that have 3 numbers in them so it just because the 2 preceding numbers only
For example
V25QG2-K18QG-V25CG2
L26HG-L17HA-L26CG
I434QD1-L19HB2-I434CD1
I434QD1-A31QB-I434CD1 ... (7 Replies)
Discussion started by: olifu02
7 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
Disclosure: I am very new to Unix, but eager to learn..
I've been tasked with transferring logs to a remote server. After I've verified these logs have transferred correctly I have to remove the source files. The naming scheme is:
/directory/2012.05.01
/directory/2012.05.02
..and... (1 Reply)
Discussion started by: JD3V
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I want to remove trace files in a particular directory for a specific date range. Currently i can remove based on time (e.g find /path/*.trm -mtime +1000 -exec rm {} \;). But i want to remove .trm files within a date range. E.g to remove .trm files between jan 1 2002 to April 15 2005.
... (3 Replies)
Discussion started by: dollypee
3 Replies
10. Shell Programming and Scripting
In each line of file, I wish to check if word1 is a non-connected subset of any of the other words in the line. If yes, keep only the words that ward1 is a subset of. Else, remove the whole line.
Also, I want to remove the letters that word1 doesn't match with, except for "_+"
Example file:... (2 Replies)
Discussion started by: Viernes
2 Replies
LEARN ABOUT DEBIAN
m17n-dump
m17n-dump(1) The m17n Library m17n-dump(1)
NAME
m17n-dump - dump text image
SYNOPSIS
m17n-dump [ OPTION ... ] [ FILE ]
DESCRIPTION
Dump a text as PNG image file.
The PNG file is written to a file created in the current directory with the name 'BASE.png' where BASE is the basename of FILE. If FILE is
omitted, text is read from standard input, and the image is dumped into the file 'output.png'.
The following OPTIONs are available.
o -s SIZE
SIZE is the font size in point. The default font size is 12 point.
o -d DPI
DPI is the resolution in dots per inch. The default resolution is 300 dpi.
o -p PAPER
PAPER is the paper size: a4, a4r, a5, a5r, b5, b5r, letter, WxH, or W. In the case of WxH, W and H are the width and height in millimeter.
In the case of W, W is the width in millimeter. If this option is specified, PAPER limits the image size. If FILE is too large for a single
page, multiple files with the names 'BASE.01.png', 'BASE.02.png', etc. are created.
o -m MARGIN
MARGIN is the horizontal and vertical margin in millimeter. The default margin is 20 mm. It is ignored when PAPER is not specified.
o -c POS
POS is the character position of cursor to draw. By default, cursor is not drawn.
o -x
FILE is assumed to be an XML file generated by the serialize facility of the m17n library, and FILE is deserialized before an image is
created.
o -w
Each line is broken at word boundary.
o -f FILTER
FILTER is a string containing a shell command line. If this option is specified, the PNG image is not written info a file but is given to
FILTER as standard input. If FILTER contains '%s', that part is replaced by a basename of FILE. So, the default behaviour is the same as
specifying 'cat >
%s.png' as FILTER.
If FILTER is just '-', the PNG image is written to stdout.
o -a
Enable anti-alias drawing.
o --family FAMILY
Prefer a font whose family name is FAMILY.
o --language LANG
Prefer a font specified for the language LANG. LANG must be a 2-letter code of ISO 630 (e.g. 'en' for English).
o -fg FOREGROUND
Specify the text color. The supported color names are those of HTML 4.0 and '#RRGGBB' notation.
o -bg BACKGROUND
Specify the background color. The supported color names are the same as FOREGROUND, except that if 'transparent' is specified, make the
background transparent.
o -r
Specify that the orientation of the text is right-to-left.
o -q
Quiet mode. Don't print any messages.
o --version
Print the version number.
o -h, --help
Print this message.
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 m17n-dump(1)