Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

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 ...
Gregg Leventhal's user avatar