A utility to mark and operate on files in the shell.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
531 B

  1. #!/usr/bin/env perl
  2. =pod
  3. =head1 NAME
  4. marks-remove - remove files from the current set of marked files
  5. =head1 SYNOPSIS
  6. marks-remove: removes filesystem paths from the mark list
  7. USAGE:
  8. marks remove path_to_mark
  9. EXAMPLE:
  10. marks remove foo.txt
  11. =head1 AUTHOR
  12. Brennen Bearnes
  13. =cut
  14. use warnings;
  15. use strict;
  16. use 5.10.0;
  17. use App::MarkFiles qw(remove);
  18. use Cwd qw(cwd abs_path);
  19. use Getopt::Long;
  20. use Pod::Usage;
  21. GetOptions(
  22. help => sub { pod2usage(0) },
  23. ) or pod2usage(2);
  24. remove(map { abs_path($_) } @ARGV);