Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux.ubuntu > #197571

Re: grep'ing a bunch of located files for a word

From Bit Twister <BitTwister@mouse-potato.com>
Newsgroups alt.os.linux.ubuntu
Subject Re: grep'ing a bunch of located files for a word
Date 2017-11-07 17:04 +0000
Organization A noiseless patient Spider
Message-ID <slrnp03ptq.qrc.BitTwister@wb.home.test> (permalink)
References <f6e6nrF89adU1@mid.individual.net>

Show all headers | View raw


On Tue, 7 Nov 2017 08:53:13 -0800, fred flintstone wrote:
> $ locate errno.h
> /usr/include/errno.h
> /usr/include/asm-generic/errno.h
> /usr/include/linux/errno.h
> /usr/include/x86_64-linux-gnu/asm/errno.h
> /usr/include/x86_64-linux-gnu/bits/errno.h
> /usr/include/x86_64-linux-gnu/sys/errno.h
> ...
> /usr/src/linux-headers-4.8.0-56/arch/x86/include/uapi/asm/errno.h
> /usr/src/linux-headers-4.8.0-56/include/linux/errno.h
> /usr/src/linux-headers-4.8.0-56/include/uapi/asm-generic/errno.h
> /usr/src/linux-headers-4.8.0-56/include/uapi/linux/errno.h
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID:	Ubuntu
> Description:	Ubuntu 16.04.3 LTS
> Release:	16.04
> Codename:	xenial
> $
>
> How do I grep the located files for EEXIST ?

while read -r fn ; do
  grep EEXIST $fn
done < <(locate errno.h)

Back to alt.os.linux.ubuntu | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

grep'ing a bunch of located files for a word fred flintstone <fred@server.invalid> - 2017-11-07 08:53 -0800
  Re: grep'ing a bunch of located files for a word Bit Twister <BitTwister@mouse-potato.com> - 2017-11-07 17:04 +0000
    Re: grep'ing a bunch of located files for a word Richard Kettlewell <invalid@invalid.invalid> - 2017-11-07 17:38 +0000
  Re: grep'ing a bunch of located files for a word Aragorn <thorongil@telenet.be> - 2017-11-07 18:36 +0100
    Re: grep'ing a bunch of located files for a word Chris Ahlstrom <OFeem1987@teleworm.us> - 2017-11-08 05:37 -0500

csiph-web