Write a query to count a particular character in a string. e.g Return the number of times 'N' appears in string 'NITININ'. The result shoudl be 3.
Solution:
select length('NITININ') - length(replace('NITININ','N','')) from dual
Return code before grep part 3 and the pipefail hack
-
whenever you do mycmd | grep mytext the return code of command got lost, $?
point to the return code of grep. Back in time I posted
https://laurentschneid...
3 weeks ago

No comments:
Post a Comment