06-14-2010
if [ $2 == "VLD_AB_F" ] then print "Invalid AB in $6"
if [ $3 == "VLD_CD_F" ] then print "Invalid CD in $6"
---for the above I want to print "Invalid AB, CD in $6"
[for all the matches the corresponding value]
Basically, _F is failure. So I will check in few columns for this and echo the corresponding error message
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a file like this.
1,1,1,0,0,0
1,1,2,1,0,0
1,1,3,0,0,0
1,1,4,0,0,0
...........
...........
1,1,24,0,0,0
1,1,25,0,0,0
1,1,26,1,0,0
1,1,27,0,0,0
1,2,1,0,0,0
1,2,2,0,0,0
1,2,3,0,0,0
1,2,4,0,0,0
1,2,5,1,0,0
1,2,6,1,0,0 (4 Replies)
Discussion started by: vskr72
4 Replies
2. Shell Programming and Scripting
I have seen many posts to transpose rows into columns, but not for multiple rows to columns..so please help me how to do this..
I have around 1000 rows and 1000 columns, i want to transpose it..
A1 A2 A3
B1 B2 B3
C1 C2 C3
D1 D2 D3
I want output to be like
A1 B1 C1 D1
A2 B2 C2 D2... (5 Replies)
Discussion started by: ganeshss
5 Replies
3. Shell Programming and Scripting
Hi,
I have a question for Row to Columns by script.
e.g. i have a file
Start
1 2
3
4
End
Start
1 2
3
3
4
4
End (6 Replies)
Discussion started by: bleach8578
6 Replies
4. Shell Programming and Scripting
Hi Friends
I have the following input data in 2 columns.
SNo 1
I1 Value
I2 Value
I3 Value
SNo 2
I4 Value
I5 Value
I6 Value
I7 Value
SNo 3
I8 Value
I9 Value
...............
................
SNo N (1 Reply)
Discussion started by: ks_reddy
1 Replies
5. Shell Programming and Scripting
Hi
I have a file containing some data as follows:
11-17-2010:13:26 64 4 516414 1392258
11-17-2010:13:26 128 4 586868 695603
11-17-2010:13:26 256 4 474937 1642294
11-17-2010:13:32 64 4 378715 1357066
11-17-2010:13:32 128 4 597981 1684006 ... (17 Replies)
Discussion started by: annazpereira
17 Replies
6. Shell Programming and Scripting
i ask to do ,,program that convert the last row to be the first row ,,,and after that exchange the the columns
ex,,
1 2 3
4 5 6
7 8 9
to be
7 8 9
4 5 6
1 2 3
and then to be
9 8 7
6 5 4
3 2 1
give mee the code .... (0 Replies)
Discussion started by: khaled1989kh
0 Replies
7. UNIX for Dummies Questions & Answers
i ask to do ,,program that convert the last row to be the first row ,,,and after that exchange the the columns
ex,,
1 2 3
4 5 6
7 8 9
to be
7 8 9
4 5 6
1 2 3
and then to be
9 8 7
6 5 4
3 2 1 (0 Replies)
Discussion started by: khaled1989kh
0 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a tab-delimited file as follows:
1 1 2 2 3 3 4 4
a a b b c c d d
5 5 6 6 7 7 8 8
e e f f g g h h
9 9 10 10 11 11 12 12
i i j j k k l l
13 13 14 14 15 15 16 16
m m n n o o p p
The output I need is:
1 1 a a 5 5 e e 9 9 i i 13... (5 Replies)
Discussion started by: mvaishnav
5 Replies
9. Shell Programming and Scripting
this is the requirement
list.txt
table1
table2
table3
testfile.txt
name#place#data#select * from table1
name2#place2#data2#select * from table 10 innerjoin table3
name2#place2#data2#select * from table 10
output
name place table1
name2 place table3
i tried using awk (7 Replies)
Discussion started by: vamsekumar
7 Replies
10. Shell Programming and Scripting
Hi ALL,
We have requirement in a file, i have multiple rows.
Example below:
Input file rows
01,1,102319,0,0,70,26,U,1,331,000000113200000011920000001212
01,1,102319,0,1,80,20,U,1,241,00000059420000006021
I need my output file should be as mentioned below. Last field should split for... (4 Replies)
Discussion started by: kotra
4 Replies
LEARN ABOUT PHP
cairostatus
CAIROSTATUS(3) 1 CAIROSTATUS(3)
The CairoStatus class
INTRODUCTION
CairoStatus is used to indicate errors that can occur when using Cairo. In some cases it is returned directly by functions. but when using
CairoContext, the last error, if any, is stored in the object and can be retrieved with CairoContext::status or cairo_status(3). New
entries may be added in future versions.
Use Cairo::statusToString or cairo_status_to_string(3) to get a human-readable representation of an error message.
CLASS SYNOPSIS
CairoStatus
CairoStatus
Constants
o const integer$CairoStatus::SUCCESS0
o const integer$CairoStatus::NO_MEMORY1
o const integer$CairoStatus::INVALID_RESTORE2
o const integer$CairoStatus::INVALID_POP_GROUP3
o const integer$CairoStatus::NO_CURRENT_POINT4
o const integer$CairoStatus::INVALID_MATRIX5
o const integer$CairoStatus::INVALID_STATUS6
o const integer$CairoStatus::NULL_POINTER7
o const integer$CairoStatus::INVALID_STRING8
o const integer$CairoStatus::INVALID_PATH_DATA9
o const integer$CairoStatus::READ_ERROR10
o const integer$CairoStatus::WRITE_ERROR11
o const integer$CairoStatus::SURFACE_FINISHED12
o const integer$CairoStatus::SURFACE_TYPE_MISMATCH13
o const integer$CairoStatus::PATTERN_TYPE_MISMATCH14
o const integer$CairoStatus::INVALID_CONTENT15
o const integer$CairoStatus::INVALID_FORMAT16
o const integer$CairoStatus::INVALID_VISUAL17
o const integer$CairoStatus::FILE_NOT_FOUND18
o const integer$CairoStatus::INVALID_DASH19
o const integer$CairoStatus::INVALID_DSC_COMMENT20
o const integer$CairoStatus::INVALID_INDEX21
o const integer$CairoStatus::CLIP_NOT_REPRESENTABLE22
o const integer$CairoStatus::TEMP_FILE_ERROR23
o const integer$CairoStatus::INVALID_STRIDE24
PREDEFINED CONSTANTS
o CairoStatus::SUCCESS -No error has occurred
o CairoStatus::NO_MEMORY -Out of memory
o CairoStatus::INVALID_RESTORE -cairo_restore(3) called without matching cairo_save(3)
o CairoStatus::INVALID_POP_GROUP -No saved group to pop
o CairoStatus::NO_CURRENT_POINT -No current point defined
o CairoStatus::INVALID_MATRIX -Invalid matrix (not invertible)
o CairoStatus::INVALID_STATUS -Invalid value for an input CairoStatus>
o CairoStatus::NULL_POINTER -Null pointer
o CairoStatus::INVALID_STRING -Input string not valid UTF-8 string
o CairoStatus::INVALID_PATH_DATA -Input path data not valid
o CairoStatus::READ_ERROR -Error while reading from input stream
o CairoStatus::WRITE_ERROR -Error while writing to output stream
o CairoStatus::SURFACE_FINISHED -Target surface has been finished
o CairoStatus::SURFACE_TYPE_MISMATCH -The surface type is not appropriate for the operation
o CairoStatus::PATTERN_TYPE_MISMATCH -The pattern type is not appropriate for the operation
o CairoStatus::INVALID_CONTENT -Invalid value for an input CairoContent
o CairoStatus::INVALID_FORMAT -Invalid value for an input CairoFormat
o CairoStatus::INVALID_VISUAL -Invalid value for an input Visual
o CairoStatus::FILE_NOT_FOUND -File not found
o CairoStatus::INVALID_DASH -Invalid value for a dash setting
o CairoStatus::INVALID_DSC_COMMENT -Invalid value for a DSC comment
o CairoStatus::INVALID_INDEX -Invalid index passed to getter
o CairoStatus::CLIP_NOT_REPRESENTABLE -Clip region not representable in desired format
o CairoStatus::TEMP_FILE_ERROR -Error creating or writing to a temporary file
o CairoStatus::INVALID_STRIDE -Invalid value for CairoStride
PHP Documentation Group CAIROSTATUS(3)