10-23-2012
Many thanks,
That is one hell of a line using GAWK.Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have to compare records in two files. It can be done using gawk/awk but i am unable to do it. Please help me
File1
ABAAAAAB BC asa sa
ABAAABAA BC bsa sm
ABBBBAAA BC bxz sa
ABAAABAB BC csa sa
ABAAAAAA BC dsa sm
ABBBBAAB BC dxz sa
File 2
ABAAAAAB BC aas ba
ABAAAAAB BC asa sa... (6 Replies)
Discussion started by: sandeep_hi
6 Replies
2. Shell Programming and Scripting
Guess the subject lines says it all.
What is the perl equivalent to grep -c
-c, --count
Suppress normal output; instead print a count of match-
ing lines for each input file. With the -v, --invert-
match option (see below), count non-matching lines.
... (6 Replies)
Discussion started by: popeye
6 Replies
3. Shell Programming and Scripting
Hi,
I am using the script to print the portion of the file containing a particular string. But it is giving error "For Reading (No such file or directory). I am using cygwin as unix simulator.
cat TT35*.log | gawk -v search="12345678" '
/mSOriginating /,/disconnectingParty/ {
... (1 Reply)
Discussion started by: vanand420
1 Replies
4. Shell Programming and Scripting
Hi folks
I am not allowed to install GNU grep on AIX.
Here my code excerpt:
grep_fatal () {
/usr/sfw/bin/gegrep -B4 -A2 "FATAL|QUEUE|SIGHUP"
}
Howto the same on AIX based machine?
from manual GNU grep
‘--after-context=num’
Print num lines of trailing context after... (4 Replies)
Discussion started by: slashdotweenie
4 Replies
5. Shell Programming and Scripting
Hi,
I'm working with gawk (on DOS) today.
A goal is: find a string for-instance '123', cut a line in two columns and write second one. The problem is: command line works OK, awk file doesn't. But I would like to work with file because there are many strings to find.
input:
line command:
awk... (4 Replies)
Discussion started by: frajer
4 Replies
6. Shell Programming and Scripting
I'm looking for SED equivalent for grep -w -f. All I want is to search a list of patterns from a file. Also If the pattern doesn't match I do not want "null returned", rather I would prefer some text as place holder say "BLANK LINE" as I intend to process the output file based on line number.
... (1 Reply)
Discussion started by: novice_man
1 Replies
7. Shell Programming and Scripting
I have to do grep -v in a perl script. I want to exclude blank lines and lines having visitor.
#grep -v visitor abc.txt |grep '.'
file:abc.txt
1340 not booked 16D:D9 tourist 8
1341 not booked 16C:D4 tourist 25
1342 not booked 16D:C4 visitor 7
1343 not booked 01C:D9 visitor 6
1344... (4 Replies)
Discussion started by: dynamax
4 Replies
8. Shell Programming and Scripting
Any equivalent command using awk or grep?
sed -n "/^$(date --date='10 minutes ago' '+%b %_d %H:%M')/,\$p" /abc.log (7 Replies)
Discussion started by: timmywong
7 Replies
9. SCO
I am trying to use gawk to search a file and put the second value of the string into a string.
gawk -F: '$1~/CXFR/ {print $2}' go.dat
Below is the file 'go.dat'
====================
HOME :/
CTMP :/tmp
CUTL :/u/rdiiulio/bin
CWRK :/u/work
CXFR :/u/xfer
... (1 Reply)
Discussion started by: trolley
1 Replies
10. AIX
Need grep -v "Hello" equivalent for AIX (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT REDHAT
xltfontchooser
(3) Free Widget Foundation (3)
NAME
XltFontChooser
DESCRIPTION
The XltFontChooser widget allows a user to select a font by choosing its XLFD font name fields. The widget is subclassed from XmMessageBox
which means it inherits its behavior.
This is a rather simple widget (less than 600 lines), it can create a hell of a widget hierarchy though. Editres will amaze you.
Public variables
+-----------------------------------------------------------------------------------------------+
| | | XltFontChooser |
|Name | Class | Type | Default |
|XltNshowDemo | XltCShowDemo | Boolean | True |
|XltNfontName | XltCFontName | String | NULL |
|XltNdemoString | XltCDemoString | String | "The quick brown fox jumps over the lazy dog." |
|XltNcountString | XltCCountString | String | "%d matching fonts" |
|XltNpattern | XltCPattern | String | "-*-*-*-*-*-*-*-*-*-*-*-*-*-*" |
|XltNsortCriteria | XltNSortCriteria | String | "aaaaaannnnanaa" |
| | | | |
+-----------------+------------------+---------+------------------------------------------------+
XltNshowDemo
Whether to show a string in the font selected by the user. (Or the first one that applies the selection, if multiple).
XltNfontName
This is the name of the selected font.
XltNdemoString
This string is shown to demonstrate the selected font.
XltNcountString
This string is used to print the amount of matching fonts.
XltNpattern
This string is used to specify the initial query for fonts. The default value will retrieve all fonts with XLFD compliant names.
XltNsortCriteria
This string of exactly 14 characters indicates the sorting order used for the menu buttons. n or N mean numeric, a or A indicate
alphabetic sort order, any other character means don't sort.
Selected inherited resources
XmNokCallback
Allows an application to get a call, query XltNfontName using GetValues, and take appropriate action.
XmNcancelCallback
CLASS HIERARCHY
These manuals of the superclasses describe the inherited resources :
Object(3)
Rect(3)
UnNamedObj(3)
Core(3)
XmManager(3)
XmBulletinBoard(3)
XmMessageBox(3)
Version 3.0 (3)