03-31-2010
Thank you vgersh99, works like a charm!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I have a file that looks like this...
##########
1zz2_15-43 1ouy_0-13-35 1.12619901947
2gfs_41-7 1yqj_3 0.793602121208
1bl7_11-3 1wbo_1-3-4 0.791065168287
1ywr_16-3 2ghl_22 0.956896171134
2exc_11-35 1pmq_13-15-87 0.597677672501
2bal_25-7 1ouk_17-19-21-228-58 0.668388304836... (6 Replies)
Discussion started by: Digby
6 Replies
2. Shell Programming and Scripting
Hello,
I have two files that I need to compare and print out the line from file2 that has the first 6 fields matching the first 6 fields in file1. Complicating this are the following restrictions
1. file1 is only a few thousand lines at most and file2 is greater than 2 million
2. I need to... (7 Replies)
Discussion started by: gillesc_mac
7 Replies
3. Shell Programming and Scripting
Hi All,
I am encountered with a problem while sorting a file based on multiple columns . I need to sort like:
(field2,ascending) , (field3,ascending) ,(field8,descending) , (field7,ascending),(field13,ascending).
So far i was sorting only in ascending order but here i need to use one... (1 Reply)
Discussion started by: apjneeraj
1 Replies
4. Shell Programming and Scripting
I need to print the second field of a file, taking spaces, tab and = as field separators.
; for 16-bit app support
MAPI=1
CMC=1
CMCDLLNAME32=mapi32.dll
CMCDLLNAME=mapi.dll
MAPIX=1
MAPIXVER=1.0.0.1
OLEMessaging=1
asf=MPEGVideo
asx=MPEGVideo
ivf=MPEGVideo
m3u=MPEGVideo (2 Replies)
Discussion started by: PamPam
2 Replies
5. UNIX for Dummies Questions & Answers
I'm trying extract a number of filename fields from a log file and copy them out as separate rows in a text file so i can load them into a table. I'm able to get the filenames but the all appear on one line. I tried using the cut command with the -d (delimiter) option but cant seem to make it... (1 Reply)
Discussion started by: Sinbad-66
1 Replies
6. Shell Programming and Scripting
Hey all,
Unfortunately I have only basic knowledge of awk and/or scripting. If I have a file with lines that can look similar to this:
Name=line1 Arg1=valueA Arg2=valueB Arg3=valueC
Name=line2 Arg1=valueD
Name=line3 Arg1=valueE Arg3=valueF
Name=line4 Arg2=valueG ... (4 Replies)
Discussion started by: Rike255
4 Replies
7. Shell Programming and Scripting
Hi,
I am trying to execute this line
awk -F ";" -v OFS=";" '{gsub(/\./,",",$6); print}' FILE
but for multiple fields $6 $7 $8
Do you have a suggstion?
Tried:
awk -F ";" -v OFS="";"" "function GSUB( F ) {gsub(/\./,\",\",$F); print} { GSUB( 6 ); GSUB( 7 ); GSUB( 8 ) } 1"... (2 Replies)
Discussion started by: nakaedu
2 Replies
8. Shell Programming and Scripting
Can you please help me with this ....
Input File
share "FTPTransfer" "/v31_fs01/root/FTP-Transfer" umask=022 maxusr=4294967295 netbios=NJ09FIL530
share "Test" "/v31_fs01/root/Test" umask=022 maxusr=4294967295 netbios=NJ09FIL530
share "ENR California" "/v31_fs01/root/ENR California"... (14 Replies)
Discussion started by: greycells
14 Replies
9. Shell Programming and Scripting
Hello, I have the following input file:
1 3 3 2
3 3 4 0
4 0 5 4
5 2 2 0
5 3 4 0
6 0 3 2
I am trying to remove all zeroes in fields 2 and 4 and replace them with "1's"
I tried the following, but it's not working
awk -F"\t" '{ if (($2==0) || ($4==0) $2=1; $4=1; print $0 ) }' input
... (8 Replies)
Discussion started by: Rabu
8 Replies
10. Shell Programming and Scripting
so its common knowledge one can print multiple fields with simple commands like this:
echo 12 44 45 552 24 | awk '{print $1,$4,$3}'
but suppose i want to avoid specifying the "$" symbol. is that possible? can something like this be done:
echo 12 44 45 552 24 | awk '{print $(1,4,3)}'
... (9 Replies)
Discussion started by: SkySmart
9 Replies
LEARN ABOUT CENTOS
gvmap.sh
GVMAP.SH(1) General Commands Manual GVMAP.SH(1)
NAME
gvmap.sh - pipeline for running gvmap
SYNOPSIS
gvmap.sh [-vV?] [ options ] [ -o outfile ] [ files ]
DESCRIPTION
gvmap.sh takes as input a graph in DOT format, performs a layout, runs the output through gvmap and renders the output. At some point, it
is hoped to integrate all of these tasks into gvmap.
OPTIONS
The following options are supported:
-a k The integer k specifies the average number of artificial points added along the bounding box of the labels. Such artificial points
are added to avoid a country boundary cutting through the boundary box of the labels. Computing time is proportional to k; hence,
for large graphs, a small value of k is suggested. If k = -1, a suitable value of k is automatically selected based on the graph
size. By default k = -1.
-K layout
specifies which program should be use for the initial layout. By default, sfdp is run. Also by default, the layout is passed the
flag -Goverlap=prism. This can be overridden using a -g flag.
-T format
specifies the final output format. This works the same way as the -T flag for any Graphviz layout program.
-N attr=val
specifies the setting of a default node attribute during the rendering phase. This works the same way as the -N flag for any
Graphviz layout program.
-G attr=val
specifies the setting of a graph attribute during the rendering phase. This works the same way as the -G flag for any Graphviz lay-
out program.
-E attr=val
specifies the setting of a default edge attribute during the rendering phase. This works the same way as the -E flag for any
Graphviz layout program.
-n attr=val
specifies the setting of a default node attribute during the layout phase. This works the same way as the -N flag for any Graphviz
layout program.
-g attr=val
specifies the setting of a graph attribute during the layout phase. This works the same way as the -G flag for any Graphviz layout
program.
-e attr=val
specifies the setting of a default edge attribute during the layout phase. This works the same way as the -E flag for any Graphviz
layout program.
-A flag
specifies a flag to be passed to gvmap. For example, gvmap.sh -Ae -As3 causes gvmap -e -s3 to be run.
-v Set verbose mode.
-V Print version information and exit.
-? Print usage information and exit.
EXAMPLES
The following invocation creates a map with edges in semi-transparent light gray and nodes laid out using sfdp:
gvmap.sh -Ae -Ecolor=#55555522 -Tpng foo.gv > foo.png
It is equivalent to running the pipeline
sfdp -Goverlap=prism foo.gv | gvmap -e | neato -n2 -Ecolor=#55555522 -Tpng > foo.png
AUTHOR
Emden R. Gansner <erg@research.att.com>
SEE ALSO
gvmap(1), sfdp(1), neato(1), gvpr(1)
E. R. Gansner, Y. Hu, S. G. Kobourov, "GMap: Visualizing graphs and clusters as maps," Proc. Pacific Vis. 2010, pp. 201-208.
31 March 2011 GVMAP.SH(1)