use awk pick value from lines as condition for grep
Hi Folks!
I have a file like this
I want to grep the lines where the second number after "LINE" is greater then e.g. >=4. And the blocks should stay separated with a blank line. Can someone help?
Hi folks,
I have a text file that I need to parse, and I cant figure it out. The source is a report breaking down softwares from various companies with some basic info about them (see source snippet below). Ultimately what I want is an excel sheet with only Adobe and Microsoft software name and... (5 Replies)
Dear All,
I need help..
I am having a csv file.
Home_TITLE,People_TITLE,Repo_ALIAS
HMN5530,RKY5807,/mine_repo/rike001
HMN5530,SRY6443,/mine_repo/rike001
HMN5530,ARDY001,/mine_repo/rike001
If i have two value in varible RKY5807, HMN5530. how can fetch and store another value... (6 Replies)
file input
aaaa,52C
aaaa,50C
bbbb,50C
bbbb,58C
aaaa,52C
bbbb,50C
aaaa,30C
bbbb,58C
cccc,60C
i want to print uniq lines with its max value of column2
expected output
aaaa,52C
bbbb,58C
cccc,60C
tks (4 Replies)
All
I have a requirement to search and pick the data as below. Explained with example.
38999|4812 Highway 52 North|Rockville|55901|0196
67541|2800 Dexter Road|Northville|38999|0196
This is pipe separate data. First column represents dealer id and 4th column represents the zip code where... (4 Replies)
I am trying to modify and understand an awk written by @Scrutinizer
The below awk will filter a list of 30,000 lines in the tab-delimited file. What I am having trouble with is adding a condition to SVTYPE=CNV
that will only print that line if CI=,0.95: portion in blue in file is <1.9.
The... (2 Replies)
The awk below uses the tab-delimeted fileand reformats each line based on one of three conditions (rules). The 3 rules are for deletion (lines in blue), snv (line in red), and insertion (lines in green). I have included all possible combinations of lines from my actual data, which is very large.... (0 Replies)
Hi, I need to print lines which are matching with start pattern "SELECT" and END PATTERN ";" and only select the last "select" statement including the ";" .
I have attached sample input file and the desired input should be as:
INPUT FORMAT:
SELECT
ABCD,
DEFGH,
DFGHJ,
JKLMN,
AXCVB,... (5 Replies)
Discussion started by: nani2019
5 Replies
LEARN ABOUT CENTOS
dijkstra
DIJKSTRA(1) General Commands Manual DIJKSTRA(1)NAME
dijkstra - single-source distance filter
SYNOPSIS
dijkstra [ -adp? ] [ sourcenode file ]
DESCRIPTION
dijkstra reads a stream of graphs and for each computes the distance of every node from sourcenode. Edge length is given in the len
attribute, and the default is 1. The dist attribute of every node is set to its distance from sourcenode. If the -p flag is used, the
prev attribute of each node reachable from sourcenode is set to the name of the previous node on a shortest path. The graph attribute
maxdist is set to the maximum dist of all nodes in the graph.
If the -d flag is used, the graph is treated as directed and only forward edges are used.
By default, if the graph is disconnected, the dist attribute of nodes unreachable from sourcenode are left untouched, and maxdist is set to
the maximum of any previous value and the largest distance recorded in this run. On the other hand, if the -a flag is used, the dist
attribute of an unreachable node is assigned a very large value, and maxdist records the maximum distance found in the component containing
sourcenode.
Any number of sourcenode file pairs may be given. If the last file is missing, stdin is used. All output is written to stdout.
In a typical application, dist and maxdist can drive a downstream calculation of color or some other attribute.
SEE ALSO gvpr(1), gvcolor(1), libgraph(3)
21 March 2001 DIJKSTRA(1)