10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Using grep I can easily use:
cvs log |grep -iB 10 -A 10 'date: 2013-10-30'
to display search results and 10 lines before and after. How can this be accompished using gawk? (4 Replies)
Discussion started by: metallica1973
4 Replies
2. Shell Programming and Scripting
Hi Friends,
I have an input file like this
chr1 100 200
chr1 200 300
chr1 300 400
chr1 400 500
chr1 500 600
chr1 600 700
chr1 700 800
chr1 800 900
chr1 900 920
chr1 940 960
I would like to get the first line's second column and the fifth line's 3rd column as one single line. This... (13 Replies)
Discussion started by: jacobs.smith
13 Replies
3. Shell Programming and Scripting
I have used gawk inside my script. But doesn't make log of that. So, what is the way to make logs of gawk block
Thanks for replying...:) (3 Replies)
Discussion started by: ezee
3 Replies
4. Shell Programming and Scripting
Hi all,
I have a text file consisting of 4 columns. What I am trying to do is see whether column 2 repeats multiple times, and collapse those repeats into one row. For example, here is a snippet of the file I am trying to analyze:
1 Gamble_Win 14.282 0.502
1 Sure_Thing 14.858 0.174
1... (4 Replies)
Discussion started by: Jahn
4 Replies
5. Shell Programming and Scripting
Hi Guys,
After windows died on my netbook I installed Lubuntu and discovered Gawk about a month ago. After using Excel for 10+ years I'm amazed how quick and easily Gawk can process data but I'm stuck with a little problem merging data from multiple lines.
I'm an SEO Consultant and provide... (9 Replies)
Discussion started by: Jamesfirst
9 Replies
6. Shell Programming and Scripting
Hi all,
This should be very easy but I can't figure it out...
I have a file that looks like this:
@SRR057408.1 FW8Y5CK02R652T length=34
AGCAGTGGTATCAACGCAGAGTAAGCAGTGGTAT
+SRR057408.1 FW8Y5CK02R652T length=34
FIIHFF6666?=:88@@@BBD:::?@ABBAAA>8
@SRR057408.2 FW8Y5CK02TBMHV length=52... (1 Reply)
Discussion started by: kmkocot
1 Replies
7. UNIX for Dummies Questions & Answers
sir... am having a data file of customer master., containing some important fields as a set one line after another.,
what i want is to have one set of these fields(rows) one after another in line.........then the second set... and so on... till the last set completed.
I WANT THE DATA... (0 Replies)
Discussion started by: KANNI786
0 Replies
8. UNIX for Dummies Questions & Answers
sir... am having a data file of customer master., containing some important fields as a set one line after another.,
what i want is to have one set of these fields(rows) one after another in line.........then the second set... and so on... till the last set completed.
... (0 Replies)
Discussion started by: KANNI786
0 Replies
9. Shell Programming and Scripting
Hi,
My input has much more lines, but few of them are below
pin(IDF) {
direction : input;
drc_pinsigtype : signal;
pin(SELDIV6) {
direction : input;
drc_pinsigtype : ... (3 Replies)
Discussion started by: nehashine
3 Replies
10. Shell Programming and Scripting
I am attempting to combine sections of log that should be one line but are spaced out over 10-30 lines due to how the software is outputting the info. (If I am making a newbie mistake I apologize)
Example of log I am working with:
2009-04-14 14:51:22 access data here
info.
Info.
Info.
……..... (4 Replies)
Discussion started by: demanche
4 Replies
wml::des::imgbg(3) EN Tools wml::des::imgbg(3)
NAME
wml::des::imgbg - Background Images
SYNOPSIS
#use wml::des::imgbg
<: $file = &imgbg($base, $direction, $content, $pixels, $format); :>
<body ... background=<imgbg [attributes]> ...>
DESCRIPTION
The usual purpose of this tag is to create a PNG or GIF image containing a background image and to expand to its filename. Its contents is
specified via the "content" attribute by use of size/color pairs.
ATTRIBUTES
"base"
Usually the created images are named imgbg-xxxxxx.png where "xxxxxx" is the content id of the image. When you use a "base=foo"
attribute, then the resulting files are named foo.imgbg-xxxxxx.png. Actually you can even use a complete filename including a
directory prefix, i.e. when you use "base=../../common/foo" attribute, then the images are created as
../../common/foo.imgbg-xxxxxx.png.
And for most flexibility when no base is specified and the variable "BGIMG_BASE" is defined (usually from within a .wmlrc file via
"-DBGIMG_BASE~path/to/imgbg/dir/base") it is used. Use this feature to redirect the created images to a particular directory.
You may also use the variable "IMAGE_BASE" which defines in a single line all base names for images generated by WML.
"format"
By default, GIF images are generated. This attribute lets you use an alternate image format (actually only PNG and GIF are recognized).
You may also change the default format with the variable "IMAGE_FORMAT".
"direction"
Specifies the color change direction of the image: ``"h"'' for horizontal (default) or ``"v"'' for vertical.
"pixels"
Size of the image in the other direction, 1 by default.
"content"
This is a comma-separated list of size/color specifications ``pixels":#"rrggbb":#"rrggbb":"slices''
The last two arguments are optional, only present for gradient images. In this case, a linear gradient line is drawn from color 1 to
color 2, with slices different colors.
To get a background with two columns, a black one with 150 point in size and a white one which fills the rest of the page use
``"150:#000000,1200:#ffffff"''.
AUTHORS
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
Denis Barbier
barbier@engelschall.com
REQUIRES
Internal: P1, P2, P3
SEE ALSO
HTML <"body"> tag.
EN Tools 2014-04-16 wml::des::imgbg(3)