![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sort data in different columns | mogabr | Shell Programming and Scripting | 15 | 08-04-2008 07:07 AM |
| problem in greping the string from file using awk | vastare | Shell Programming and Scripting | 1 | 04-23-2008 03:40 AM |
| greping date in a file | ali560045 | Shell Programming and Scripting | 3 | 02-20-2008 07:30 AM |
| Help with Data Positioning from Columns in a flat file. | oott1 | Shell Programming and Scripting | 3 | 06-14-2006 02:22 PM |
| lining up columns of data | pau | Shell Programming and Scripting | 2 | 05-16-2006 10:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi i am using shell script which perform oracle database query and after that output is redirect to some temporary file.
the output of this file looks like SQL*Plus: Release 10.2.0.2.0 - Production on Tue Aug 5 16:08:06 2008 Copyright (c) 1982, 2005, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP and Data Mining options SQL> HOUR COUNT(*) ---------- ---------- 11 30 12 12 15 11 SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP and Data Mining options Now in fact i want to extract the columns data HOUR and COUNT(*) .Then how can i extract or grep this columns from this temporary file. any help .. //regards sunil |
|
||||
|
in first one when i give below command
#awk '/HOUR COUNT/{f=1}f' <filename> result:: awk: syntax error near line 1 awk: bailing out near line 1 i dnt know size of column it can be n number in size for currentr case it is giving me below response. grep: illegal option -- B Usage: grep -hblcnsviw pattern file . . . |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|