How about a little help with escaping this command in a bash alias file?
#> watch "lsof -n | grep rsync | egrep ' (REG|DIR) ' | egrep -v '( (mem|txt|cwd|rtd) |/LOG)' | awk '{print $9}'"
Bash alias help
-
- Posts: 38
- Joined: 2014/11/05 02:00:11
Re: Bash alias help
Someone on the backuppc list reminded me that a function solves this (duh ):
Code: Select all
function watchbupc()
{
watch -n 10 "lsof -n | grep rsync | egrep ' (REG|DIR) ' | egrep -v '( (mem|txt|cwd|rtd) |/LOG)' | aw
k '{print $9}'";
}