4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
7 results tagged find x
  • Note: find exec grep print filename only match

    find . -name foo.yml -exec bash -c "grep -q office {} && echo {} && grep office {}" \;

    August 16, 2022 at 3:10:36 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?c7kuZw
    find grep
  • thumbnail
    Unix/Linux find and sort by date modified - Super User

    find . -printf "%T@ %Tc %p\n" | sort -n

    printf arguments from man find:

    %Tk: File's last modification time in the format specified by k.
    
    @: seconds since Jan. 1, 1970, 00:00 GMT, with fractional part.
    
    c: locale's date and time (Sat Nov 04 12:02:33 EST 1989).
    
    %p: File's name.
    May 15, 2018 at 9:46:01 AM GMT+2 - permalink - archive.org - https://superuser.com/questions/294161/unix-linux-find-and-sort-by-date-modified
    find order
  • Note: find world readable files

    find . -perm -o+r

    And the opposite :

    find . ! -perm -o+r

    June 8, 2017 at 11:36:50 AM GMT+2 - permalink - archive.org - https://links.infomee.fr/?fmn6vw
    find
  • Note: find/sed equivalent in python

    for root, dirs, files in os.walk("folder"):
    for file in files:
    if file.endswith(".yml"):
    print(os.path.join(root, file))
    with open(os.path.join(root, file), "r") as sources:
    lines = sources.readlines()
    with open(os.path.join(root, file), "w") as sources:
    for line in lines:
    sources.write(re.sub(r'pattern', 'foo', line))

    May 29, 2017 at 2:15:06 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?Y803hg
    find python sed
  • linux - Looking for files NOT owned by someone - Stack Overflow

    find . ! -user foo -print

    December 9, 2016 at 10:21:36 AM GMT+1 - permalink - archive.org - http://stackoverflow.com/questions/5927489/looking-for-files-not-owned-by-someone
    find
  • ack, une alternative à grep pour codeurs

    ack permet de rechercher dans une arbo plus facilement (moins verbeusement) qu'avec grep et find.
    Orienté developpeur car il ignore tous les fichiers/dossiers des gestionnaires de versions (svn, git, vcs, mercurial..)

    August 2, 2013 at 11:28:52 AM GMT+2 - permalink - archive.org - http://fr.nicosphere.net/ack-une-alternative-a-grep-pour-codeurs-2380/
    ack alternative find grep
  • Welcome to The UNIX Grymoire!
    January 29, 2012 at 10:07:32 PM GMT+1 - permalink - archive.org - http://www.grymoire.com/Unix/
    find linux man reference sed unix
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation