Skip to content

Instantly share code, notes, and snippets.

@tonussi
Created June 27, 2013 18:19
Show Gist options
  • Save tonussi/5878967 to your computer and use it in GitHub Desktop.
Save tonussi/5878967 to your computer and use it in GitHub Desktop.
addappend.sh
#!/bin/sh
for fname in /home/tecnica/cemig/*/*/*; do
printf '0a\n<root>\n.\nw\n' | ed "$fname" | echo '</root>' >> "$fname"
done #[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment