scp dir / file with spaces
scp user@host:'"/home/user/file with spaces"' .
Create script in /etc/init.d:
case "$1" in
start)
#something here
;;
stop)
killproc -TERM /usr/local/bin/noip2
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
Add script to rc.d:
update-rc.d script defaults
INSERT IGNORE INTO mytable
(primaryKey, field1, field2)
VALUES
('abc', 1, 2),
('def', 3, 4),
('ghi', 5, 6);
Use this command:
diff -qr --exclude=.svn dir1 dir2|sort
-q = print result only where files are different
-r = recursive
—exclude = use it if something has to be excluded