Quantcast
Channel: Can command substitution be nested in variable substitution? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 6

Answer by John1024 for Can command substitution be nested in variable substitution?

$
0
0

If you don't want to create a variable, then there are other ways to perform string substitution:

$ echo "$(xclip -o -selection clipboard | sed 's/copi/knott/')"Here's a string I just knotted.

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>