Comments (2)
A lightweight workaround is using sed, head, tail instead of AsciiDoctor:
\pp(\sh(sed '1,3d' filename))
removes the first 3 lines of a file and includes it\pp(\sh(sed -e '3,5p' -e 'd' filename))
keeps lines 3 to 5\pp(\sh(sed -e '/tag1/,/tag2/p' -e 'd' filename))
keeps lines between "tag1" and "tag2" (included)
A builtin macro would be better for portability. I have to find a way to add an optional argument to include
and rawinclude
. And maybe also src
and csv
.
from pp.
I propose to close this issue. There already exist many standard tools to deal with file, there is no need to reimplement them in pp.
from pp.
Related Issues (20)
- what a great Generic preprocessor! • Command line argument so that replaced empty lines are deleted HOT 3
- Question: execute a shell call only once and reuse the result? HOT 3
- Some error location indication HOT 5
- https://www.cdsoft.fr/pp doesn't exist HOT 1
- Optionally invoke external PlantUML instead of embedded copy HOT 9
- Release archives in github releases? HOT 4
- `!flushlit` fails when path doesn't exist HOT 2
- Temporarily suspend printing text via storage/recall macros? HOT 2
- Ditaa svg support HOT 3
- Include requirements for running 'make test' on documentation HOT 1
- Embedding Lua HOT 3
- Error messages etc. HOT 8
- Finding and extracting substrings HOT 1
- FYI: working on a Homebrew formula HOT 5
- 'Cannot open crti.o' error when building pp (missing libc6-dev) HOT 1
- Interpolated Variable Processor HOT 1
- Illegal reflective access by net.sourceforge.plantuml.svg.SvgGraphics HOT 1
- Markdown header shifting on file inclusion HOT 2
- homebrew formula (macos) HOT 2
- Linker errors building pp on macOS 10.14 (Undefined symbols for architecture x86_64: distributive > "_Cabalzm ... _DistributionziSimpleziUserHooks_UserHooks_con_info") HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pp.