This is a question for a Linux bash-shell-script.
I would like to bring the output of a "cut-command" into a variable. But it does not work. The variable remains empty.
Here is what I did:
MyName@MyName:~
$ fixedFilePath=aa.zz
MyName@MyName:~
$ echo $fixedFilePath
aa.zz
MyName@MyName:~
$ EP=$fixedFilePath | rev | cut -d '.' -f 1 | rev
MyName@MyName:~
$ echo $EP
MyName@MyName:~
$
As you can see: Nothing is in the variable $EP now. My expectation was, that in $EP is now "zz".