Hi Champs!!!
im a newbie in unix, need ur expert help for my problem...
I need to search if there are any "NULL" entries in the string
String without Null
Str1: 203652|1000003653|tellt|RUPV|4649|1|07/28/2011 01:56:12
String with Null (RUPV is removed)
Str2: 203652|1000003653|tellt||4649|1|07/28/2011 01:56:12
I need to return the line if there are any NULL fields in between the PIPE "|" (which is used as delimiter)
Regards,
Guru
Thanks for the quick reply Yazu,
but, I'm retrieving this line from a file and then i need to check on the prompt.
---------- Post updated at 01:54 PM ---------- Previous update was at 01:33 PM ----------
I still not got the solution !!!
I wonder if this is what you need
cat YOURFILE | grep "||"
I grep a file and retrieve the line
Str2: 203652|1000003653|tellt||4649|1|07/28/2011 01:56:12
now i need to "|" the current command and check for null... please help!!!
clx
6
Please post the command to retrieve the above line.