You are not logged in.
Pages: 1
I want to insert the contents of a file into another file via sed. This works:
#!/bin/bash
cd /foo
tree -DC -T "Title" -H "http://url" --charset=utf8 -o /tmp/junk
cd /tmp
sed '/<h1>/ {
r /home/facade/addition
d
}' <pre >index.html
What I can't seem to do is substitute $HOME into that read statement to make it user independent. Any sed gurus out there know how to pull it off?
Last edited by graysky (2011-01-29 17:54:09)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Offline
@falconindy - Nice, thanks for that. Works great.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Pages: 1