I believe command substitution is just surrounded in () , as in 

file (which wget)

On April 4, 2015, at 6:55 PM, John Chludzinski <john.chludzin...@gmail.com> 
wrote:

I tried:

$set cur_db_dstamp `stat -c "%y" $cur_db | tr '.' ' ' | tr -d ':-' | awk 
'{print$1"-"$2}'`

and got:

awk: cmd. line:1: {print$1"-"$2}`
awk: cmd. line:1:               ^ invalid char '`' in expression


Then tried:

$  set cur_db_dstamp stat -c "%y" $cur_db | tr '.' ' ' | tr -d ':-' | awk 
'{print$1"-"$2}'

and got:

$ echo $cur_db_dstamp
stat -c %y /var/lib/aide/aide.db.gz
jski@localhost /u/s/selinux$ stat -c "%y" $cur_db | tr '.' ' ' | tr -d ':-' | 
awk '{print$1"-"$2}'

What's the solution to this problem?

And yes, this is from a KSH/BASH script I'm translating.

---John



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to