The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

select-org-elements - Select Org document elements using CSel

VERSION

This document describes version 0.40 of select-org-elements (from Perl distribution App-OrgUtils), released on 2016-03-24.

SYNOPSIS

 % select-org-elements [options] 'Headline[level=2]' foo.org

DESCRIPTION

This script selects Org document nodes using CSel, much like how CSS selector selects elements from HTML document. It then invokes

OPTIONS

  • --print=s, -p

    Specify how to print each matching element. The default is text, which is to print the result of each element's as_string() method. Other valid values include: text-and-children-text (print the result of each element's as_string() as well as children_as_string()), dump (dump each element using Org::Dump).

    See also: --count.

  • --count, -c

    Instead of printing each element, return the number of matching elements.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-OrgUtils.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-OrgUtils.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-OrgUtils

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Org::Parser

Data::CSel

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.