All Questions
1
question
3
votes
1
answer
3k
views
variable expansion within command substitution over SSH bash 4.X
I want to do this ssh ${w100user}@web100 'ls -l "$(grep "${1}" /etc/pure-ftpd/pureftpd.passwd|cut -d':' -f6)"'
Which obviously performs an ssh session to server web100 as w100user and then greps ...