09-15-2010
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a string like below:
str="Hold=True Map=False 'This will map the data' Run=Yes Modify=False"
I want to print the field Run=Yes and retrive the value "Yes". I cannot use simple awk command because the position of the "Run" will be different at different times. Is there a way... (6 Replies)
Discussion started by: deepakgang
6 Replies
2. Shell Programming and Scripting
Hi,
Contents of BBS-list file:
foo
foo
foo
awk '
BEGIN { print "Analysis of \"foo\"" }
/foo/ { ++n }
END { print "\"foo\" appears", n, "times." }' BBS-list
Output:
Analysis of "foo"
"foo" appears 3 times.
awk ' (3 Replies)
Discussion started by: cola
3 Replies
3. UNIX and Linux Applications
Hi to all! I 'm new in unix programing so... may be I decided a wrong tool to solve the problem but anyway... all road goes to rome jajaja.
My question is: There is any way to print date at the END clause of an AWK script. I mean, I'm writing a tool with AWK and the results are redirected to a... (4 Replies)
Discussion started by: fmeriles
4 Replies
4. Shell Programming and Scripting
Hi,
I have two comma separated files. I would like to see field 1 value of File1 exact match in field 2 of File2. If the value matches, then it should print matched lines from File2. I have achieved the results using cut, paste and egrep -f but I would like to use awk as it is efficient way and... (7 Replies)
Discussion started by: SBC
7 Replies
5. Shell Programming and Scripting
following is input -
<Schema>
<schema_name>admin</schema_name>
<Version>1.1</Version>
<schema_name>admin</schema_name>
<Version>1.2</Version>
</Schema>
... (12 Replies)
Discussion started by: thearpit
12 Replies
6. Shell Programming and Scripting
Hi
I have requirement to search string starting with specific characters and print whole matching word in that string.
example
mystr="ATTRIBUTE NAME="Event Name" VALUE="Execute""
I want to search by passing "NAME=" and result should be NAME="Event Name".
i am using below command but... (3 Replies)
Discussion started by: tmalik79
3 Replies
7. Shell Programming and Scripting
Hi Experts,
I am trying to get the output from a matching pattern but unable to construct the awk command:
file :
aa bb cc 11
dd aa cc 33
cc 22 45 68
aa 33 44 44
dd aa cc 37
aa 33 44 67
I want the output to be : ( if $1 match to "aa" start of the line,then print $4 of that line, and... (3 Replies)
Discussion started by: rveri
3 Replies
8. Shell Programming and Scripting
Given:
1,2,whatever,a,940,sot
how can i print from one particular field to the end of line?
awk -F"," '{print $2 - endofline}'
the delimiter just happens to be a comma "," in this case. in other cases, it could be hypens:
1---2---whatever---a---940---sot (4 Replies)
Discussion started by: SkySmart
4 Replies
9. UNIX for Advanced & Expert Users
grep -v will exclude matching lines, but I want something that will print all lines but exclude a matching field. The pattern that I want excluded is '/mnt/svn'
If there is a better solution than awk I am happy to hear about it, but I would like to see this done in awk as well. I know I can... (11 Replies)
Discussion started by: glev2005
11 Replies
10. Shell Programming and Scripting
Hi,
here are few lines present in the logs. I want to grep on Error and print few lines before and after Error word is found
line1
Line2
Line3
Error
Line4
Line5
Line6
Line7
I want the output to be
Line2
Line3
Error
Line5 (1 Reply)
Discussion started by: arghadeep adity
1 Replies
LEARN ABOUT DEBIAN
libblas-test
BLAS-TEST(1) Linux Programmer's Manual BLAS-TEST(1)
NAME
x{s,d,c,z}c?blat{1,2,3} - testing programs for blas
SYNOPSIS
x{s,d,c,z}c?blat1
x{s,d,c,z}c?blat{2,3} < parameter file
DESCRIPTION
This manual page documents briefly the blas testing programs. This manual page was written for the Debian GNU/Linux distribution because
the original programs do not have manual pages.
blas is a library of Basic Linear Algebra routines, accessed through either a Fortran and/or a C interface. These routines are categorized
into three levels: level1 referring to vecotr-vector operations, level2 to matrix-vector operations, and level3 to matrix-matrix opera-
tions. In addition, all routines are written in four "precisions", single precision real (s), double precision real (d), cingle precision
complex (c), and double precision complex (z).
The testing binaries examine routines in the level indicated by the last character in the program name and in the precision indicated by
the second character in the program name. The stem "blat" in the program name refers to a Fortran interface tester, whereas a "cblat" stem
refers to a C interface tester.
The test programs for levels 2 and 3 read a set of parameters specifying the problem ranges to examine on standard input. Sample input
files are found in /usr/share/doc/blas-test/examples. Files of the form {s,d,c,z}in{2,3} are input files for the C interface testing pro-
grams, while files or the form {s,d,c,z}blat{2,3}d are input files to the Fortran testing programs.
On Debian systems, these programs are dynamically linked against the blas library. This enables the user to test and compare alternate
versions of the library, such as those provided by atlas, through the use of the LD_LIBRARY_PATH and LD_PRELOAD environment variables. One
can confirm the versions of the libraries being tested in a given environment with the aid of the ldd program.
OPTIONS
These programs take no command line options.
AUTHOR
This manual page was written by Camm Maguire <camm@enhanced.com>, for the Debian GNU/Linux system (but may be used by others).
netlib January 29, 2002 BLAS-TEST(1)