Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Questiuon about unix

RE: Questiuon about unix

From: McBain, Neil SITI-ITDIEEE <Neil.McBain_at_shell.com>
Date: Thu, 02 Oct 2003 05:39:43 -0800
Message-ID: <F001.005D1D01.20031002053943@fatcity.com>


Roland,

grep '[^;];;[^;]*' filename

[^;] match any character except for ;
[^;]* match zero or many occurrences of any character except for ;

Cheers,
Neil.

-----Original Message-----
Sent: 02 October 2003 14:15
To: Multiple recipients of list ORACLE-L

Hallo everybody,

anyone whom can tell me what the command is to search for an empty field in a unix file.

for instance if you want to find the empty spacelines if some lines looklike:

1;100;Name;;
2;200;Test;45;
3;300;Name;;

I would like to find out line nr 1 and 3 here above. Anyone whom could suggest any good?

Maybe this sounds simple but I have tried with /;; and cant find it. If iI use that command then I will get lines with ;;;;;; and i just want lines with two ;;

Thanks in advance

Roland

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author:
  INET: roland.skoldblom_at_ica.se

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: McBain, Neil SITI-ITDIEEE
  INET: Neil.McBain_at_shell.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Oct 02 2003 - 08:39:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US