so I tried to apply grep string fn and expected to get the line number the string appeared on in the file.
I used the file tom.c a simple c program that compiles and executes just so.
case 1
so this one seemed to work. the string occurs on line 8.
case 2
so here it didn't complain but it didn't say anything about the line number. It didn't work.
why didn't case 2 work?????
also single quotes used for strings? anything else? what about ""?
I used the file tom.c a simple c program that compiles and executes just so.
case 1
Code:
$grep -n 'return 0;' /usr/home/user1/c!/tom.c
$ 8: return 0;
case 2
Code:
$ grep -n 'printf("%f\n",func(10.0));' /usr/home/user1/c!/tom.c
$
why didn't case 2 work?????
also single quotes used for strings? anything else? what about ""?