10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi there I am trying to figure out and understand what the syntax would be to egrep lines that have a word occur twice in a row. the two words obviously should have a space between them and also it has to be case sensitive which I believe grep is by deffault. the closest I have come is...
grep... (7 Replies)
Discussion started by: spo_2138
7 Replies
2. Shell Programming and Scripting
Hi All
My requirement is to find the null values in particular column of a file and reject it in case if it contains null values. But the challenge is that I want a common command which can be used across different file, as the position of the column we need to check for different file may get... (14 Replies)
Discussion started by: ginrkf
14 Replies
3. Shell Programming and Scripting
hi Gurus,
I need find the null column in a file.
my file like below
abc, ,cde,def
abc,ded,cdd,def
abc, ,ddd,ccd
aaa,bbb,ccc,ddd
basic, I need to find the lines which second column is null
Thanks in advance (3 Replies)
Discussion started by: ken6503
3 Replies
4. Shell Programming and Scripting
Hi All,
Can some one please help me how to grep the comments from "oracle" & "sybase" code. I would like to grep below type of pattern.
--
/* */
Please help. (6 Replies)
Discussion started by: gr8_usk
6 Replies
5. Shell Programming and Scripting
Hi, everyone
I have a requirement as following:
source file
1, abc, def, caaa
2, , cde, aaa
3, bcd, , adefefg
I need find columns which contains null value, in above example,
I need get two rows
2, , cde, aaa
3, bcd, , adefefg
anybody has idea how to achive this
... (5 Replies)
Discussion started by: ken002
5 Replies
6. Shell Programming and Scripting
Hi,
I've a pipe delimited file where I want to find out a number of lines where 1st 2nd and last field are null using awk/sed. Is it possible?
Thanks (5 Replies)
Discussion started by: rudoraj
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am trying to display the filename in which a string was found after using find and grep. For this after some googling I found that this works:
find -name "*.java" -exec grep "searchStr" {} /dev/null \;
I wanted to know the difference between the above and the following:
find -name... (0 Replies)
Discussion started by: gaurav_s
0 Replies
8. Shell Programming and Scripting
Hi,
i wrote If Conditions in my script, it's returns null and some values.
but i am unable to find when Null value getting. bec we need modification according null vales.
pls help me on this. (2 Replies)
Discussion started by: koti_rama
2 Replies
9. Shell Programming and Scripting
Hi All,
I have some csv files out of which i want to find records which have empty values in either the 14th or 16th fields.
The following is a sample.
$cut -d',' -f14,16 SPS* | head -5
VOIP_ORIG_INFO,VOIP_DEST_INFO
sip:445600709315@sip.com,sip:999@sip.com... (2 Replies)
Discussion started by: rahulrathod
2 Replies
10. Solaris
Hi,
How can I find the egrep version installed on Solaris 10 as I don't see any egrep --version option.Also wanted to know which version would support option of -A (eg. egrep -A NUM PATTERN FILE )
Print NUM lines of trailing context after matching lines.
Thanks & Regards,
Kiran. (6 Replies)
Discussion started by: kiranherekar
6 Replies