Hi,
Is there any way that I can eval the following -
eval abc.csv=def.csv
I am getting the - bash: command not found error.
thanks.
Hi,
Is there any way that I can eval the following -
eval abc.csv=def.csv
I am getting the - bash: command not found error.
thanks.
eval is a no-op in this case. If you "eval abc.csv=def.csv", you will just get "abc.csv=def.csv". So far, so good. So yes you can eval that. But then you need to execute the command "abc.csv=def.csv". "abc=def" would have worked because abc is a valid name for a variable. But abc.csv is not a variable name. So the shell tries to find a command called "abc.csv=def.csv". If it had found such a command, it would run it. But you don't have a command by that name. What did expect to do with this statement?
I am trying to rename the files.
That is just:
mv abc.csv def.csv
This will rename abc.csv to def.csv.