Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
#!/bin/bash
 
tempfile=`tempfile`
archfile=/mnt/sda1/backup/backup`date +%F`.tar.bz2
list=/root/backup.txt
 
rm -f $tempfile
cat $list | awk '!/^#/ && /\w+/' | while read line
do
    tar -rf $tempfile $line >/dev/null 2>&1
done #<testarch.txt
bzip2 -c $tempfile >$archfile
rm -f $tempfile
 




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2012