08-03-2010
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am trying to average multiple columns simultaneously while skipping the first column.
I am using this awk line to average one column
awk '{sum+=$3} END { print "Average = ",sum/NR}'
But I want to be able to do it for multiple columns while skipping the first column. There... (4 Replies)
Discussion started by: gisele_l
4 Replies
2. Shell Programming and Scripting
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Discussion started by: hakermania
3 Replies
3. Shell Programming and Scripting
Hi,
I have a file with multiple tab delimited columns and I would like to have the average of each column:
Iteration Tree No Lh HMean
1000 1 -78.834717 -78.834717
1100 1 -77.991031 -78.624046
1200 1 -79.416055 -78.761861
1300 1 -79.280494 -78.968099
1400 1 -82.846275 -80.808696 ... (4 Replies)
Discussion started by: mikey11415
4 Replies
4. Shell Programming and Scripting
Hi,
I have a file that has 201 columns (1 for the name of each row and the other 200 are values)
I want to print the average for each column
the file looks like this (as an example this only has 7 columns with values)
1 2 3 4 5 6 7
abr 5 6 7 1 2 4 5
hhr 2 1 3 4 ... (8 Replies)
Discussion started by: kylle345
8 Replies
5. Shell Programming and Scripting
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Discussion started by: mjavalkar
4 Replies
6. Shell Programming and Scripting
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Discussion started by: vivek d r
3 Replies
7. Shell Programming and Scripting
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Discussion started by: Ferocci
8 Replies
8. Shell Programming and Scripting
Hi all,
I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like:
<date1>|<data1>|<url1>|<result1>
<date2>|<data2>|<url2>|<result2>
<date3>|<data3>|<url3>|<result3>
<date4>|<data4>|<url4>|<result4>
What I... (3 Replies)
Discussion started by: pat_pramod
3 Replies
9. Shell Programming and Scripting
I have data like this
1 a,b,c 2 a,c 3 b,d 4 e,f would like convert like this 1 a 1 b 1 c 2 a 2 c 3 b 3 d 4 e 4 f
Please help me out (4 Replies)
Discussion started by: jhonnyrip
4 Replies
10. UNIX for Beginners Questions & Answers
Input file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 (6 Replies)
Discussion started by: Sagar Singh
6 Replies
LEARN ABOUT SUSE
graphviz
GRAPHVIZ(7) Miscellaneous Information Manual GRAPHVIZ(7)
NAME
graphviz - rich set of graph drawing tools
SYNOPSIS
This manpage has been written to fulfil the need of a centralized documentation presenting all available tools in the graphviz package.
AVAILABLE TOOLS
Graph layout programs
dot filter for hierarchical layouts of graphs
neato filter for symmetric layouts of graphs
twopi filter for radial layouts of graphs
circo filter for circular layout of graphs
fdp filter for symmetric layouts of graphs
All of the filters work with either directed or undirected graphs, though dot is typically used for directed graphs and neato for undi-
rected graphs. Note also that neato -n[2] can be used to render layouts produced by the other filters.
Graph drawing programs
lefty A Programmable Graphics Editor
lneato lefty + neato
dotty lefty + dot
Graph layout enhancement
gvcolor
flow colors through a ranked digraph
unflatten
adjust directed graphs to improve layout aspect ratio
gvpack merge and pack disjoint graphs
Graph information and transformation
gc count graph components
acyclic
make directed graph acyclic
nop pretty-print graph file
ccomps connected components filter for graphs
sccmap extract strongly connected components of directed graphs
tred transitive reduction filter for directed graphs
dijkstra
single-source distance filter
bcomps biconnected components filter for graphs
gvpr graph pattern scanning and processing language
prune prune directed graphs
Other
gxl2dot, dot2gxl
GXL-DOT converters
AUTHOR
This manual page was written by Cyril Brulebois <cyril.brulebois@enst-bretagne.fr> in november 2006, based on an initial documentation
effort by Joachim Berdal Haga <jbh@lupus.ig3.net>. It can be distributed under the same terms as the graphviz package.
November 19, 2006 GRAPHVIZ(7)