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 {}" \;

    2022年8月16日 GMT+2 下午3:10:36 - 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.
    2018年5月15日 GMT+2 上午9:46:01 - 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

    2017年6月8日 GMT+2 上午11:36:50 - 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))

    2017年5月29日 GMT+2 下午2:15:06 - 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

    2016年12月9日 GMT+1 上午10:21:36 - 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..)

    2013年8月2日 GMT+2 上午11:28:52 - permalink - archive.org - http://fr.nicosphere.net/ack-une-alternative-a-grep-pour-codeurs-2380/
    ack alternative find grep
  • Welcome to The UNIX Grymoire!
    2012年1月29日 GMT+1 下午10:07:32 - 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