Log in Sign up
2 Matching Annotations
  1. Apr 2021
  2. serverfault.com serverfault.com
    Shell command to filter out non-existing files in a pipe
    2
    1. TylerRick 13 Apr 2021
      in Public
      perl -ne 'chomp(); if (-e $_) {print "$_\n"}'
      text processing: filtering filtering: only files that exist different way of solving/implementing something list of pathnames perl
    2. TylerRick 13 Apr 2021
      in Public
      xargs -i sh -c 'test -f {} && echo {}'
      text processing: filtering shell scripting different way of solving/implementing something filtering: only files that exist list of pathnames
    Visit annotations in context

    Tags

    • filtering: only files that exist
    • text processing: filtering
    • different way of solving/implementing something
    • list of pathnames
    • shell scripting
    • perl

    Annotators

    • TylerRick

    URL

    serverfault.com/questions/609886/shell-command-to-filter-out-non-existing-files-in-a-pipe
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy