How can I do this?
[root@ipaserver ~]# ls | sed 's/.*/"&"/'
"anaconda-ks.cfg"
"ca-agent.p12"
Like this?
[root@ipaserver ~]# !QUOTED
QUOTED="sed 's/.*/\"&\"/'"
[root@ipaserver ~]# echo $QUOTED
sed 's/.*/"&"/'
[root@ipaserver ~]# ls| $QUOTED
sed: -e expression #1, char 1: unknown command: `''
I've tried all kinds of variations and nested echo command/process substitutions and eval. Is this possible to do for scripting purposes?