For example, I have an src code block which can generate another code block:
#+BEGIN_SRC sh :results code :wrap systemd
systemctl --user cat rslsync.service
#+END_SRC
#+RESULTS:
#+BEGIN_systemd
# /usr/lib/systemd/user/rslsync.service
[Unit]
Description=Resilio Sync service
After=network.target
[Service]
Type=simple
User=rslsync
Group=rslsync
ConditionPathExists=/run/media/stardiviner/Collections
ExecStart=/usr/bin/rslsync --nodaemon --config /etc/rslsync.conf
Restart=on-abort
[Install]
WantedBy=multi-user.target
#+END_systemd
I wish to append header argument :tangle "/sudo::/usr/lib/systemd/user/rslsync.service"
to
upper result code block.
:wrap "systemd :tangle /path"
works for me.