$
$
$ cat f6
line 1 - the quick brown fox jumps over the lazy dog
line 2 - the quick brown // fox jumps over the lazy dog
line 3 - the quick brown // fox jumps over the lazy dog */
line 4 - the quick//brown fox jumps over the lazy dog
line 5 - the quick//brown fox jumps over the lazy dog*/
line 6 - the quick // brown fox */ jumps over the lazy dog
$
$
$ sed -n '/\/\/.*[^*\/]$/p' f6
line 2 - the quick brown // fox jumps over the lazy dog
line 4 - the quick//brown fox jumps over the lazy dog
line 6 - the quick // brown fox */ jumps over the lazy dog
$
$ # or using Perl
$ perl -lne '/\/\/.*[^*\/]$/ and print' f6
line 2 - the quick brown // fox jumps over the lazy dog
line 4 - the quick//brown fox jumps over the lazy dog
line 6 - the quick // brown fox */ jumps over the lazy dog
$
$
thanks a lot it is exactly what I wanted to know... but I am little bit surprised that I got answer right from you, because yesterday I saw Fight club and today you are here, answering me ... so I am little bit scared that I wrote that answer by myself .