zsh-users
 help / color / mirror / code / Atom feed
* zsh-ify a bash script
@ 2022-01-19 20:56 zzapper
  2022-01-20  4:12 ` Bart Schaefer
  0 siblings, 1 reply; 9+ messages in thread
From: zzapper @ 2022-01-19 20:56 UTC (permalink / raw)
  To: Zsh-Users List

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

hi

By Tim chase

Dumb CLI trick. Wanted to find files containing all of several terms 
(dup2, pledge, socketpair, fork), but they could occur anywhere in the 
file: $


find . -name '*.c' | xargs fgrep -lw dup2 |xargs fgrep -lw pledge | 
xargs grep -l 'socketpair.*SOCK_STREAM' | xargs fgrep -w fork


NB1: Busy today & a bit overwhelmed.


Any ideas. First thing that came to mind was awk but see NB1 above


zzapper



[-- Attachment #2: Type: text/html, Size: 1532 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-01-21  8:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19 20:56 zsh-ify a bash script zzapper
2022-01-20  4:12 ` Bart Schaefer
2022-01-20 10:31   ` Mikael Magnusson
2022-01-20 10:40     ` Mikael Magnusson
2022-01-20 11:26       ` Andreas Kusalananda Kähäri
2022-01-20 18:31         ` Bart Schaefer
2022-01-20 22:13           ` Andreas Kusalananda Kähäri
2022-01-21  7:48         ` Daniel Shahaf
2022-01-21  8:50           ` zzapper

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).