Merge branch 'maint'
[org-mode.git] / testing / examples / ob-sed-test.org
blobaae1323ca3f1b29299e135fa4c406959d568393b
1 #+PROPERTY: results silent scalar
2 #+Title: a collection of examples for ob-sed tests
4 * Test simple execution of sed script
5   :PROPERTIES:
6   :ID:       C7E7CA6A-2601-42C9-B534-4102D62E458D
7   :END:
9   #+NAME: ex1
10   #+BEGIN_EXAMPLE
11     An example sentence.
12   #+END_EXAMPLE
14   #+BEGIN_SRC sed :stdin ex1
15     s/n example/ processed/
16     2 d
17   #+END_SRC
19 * Test :in-file header argument
20   :PROPERTIES:
21   :ID:       54EC49AA-FE9F-4D58-812E-00FC87FAF562
22   :END:
24   #+BEGIN_SRC sed :in-file test1.txt
25   s/test/tested/
26   #+END_SRC
28 * Test :cmd-line header argument
29   :PROPERTIES:
30   :ID:       E3C6A8BA-39FF-4840-BA8E-90D5C4365AB1
31   :END:
33   #+BEGIN_SRC sed :in-file test2.txt :cmd-line "-i"
34     s/test/tested again/
35   #+END_SRC