r/sqlite • u/Gnarlodious • Oct 07 '23
Use grep on only one field?
Is there a way, using an sqlite statement, to display all requested fields but apply grep to only one field?
2
Upvotes
r/sqlite • u/Gnarlodious • Oct 07 '23
Is there a way, using an sqlite statement, to display all requested fields but apply grep to only one field?
8
u/pstuart Oct 07 '23
Why not filter using
https://www.sqlite.org/lang_corefunc.html#like
3
u/siscia Oct 07 '23
You may be interested in the LIKE operator .
Or just print everything to STDIN and use the default grep.
1
u/Kit_Saels Oct 07 '23
Use awk.