I would like to execute a single php statement like if(function_exists("my_func")) echo 'function exists'; directly with the command line without having to use a seperate php file.
How is it possible ?
Say, I have a file foo.txt specifying N arguments
arg1
arg2
...
argN
which I need to pass to the command my_command
How do I use the lines of a file as arguments of a command?
I'm trying to write a Bash script that will overwrite an existing directory. I have a directory foo/ and I am trying to overwrite bar/ with it. But when I do this:
cp -Rf foo/ bar/
a new bar/foo/ …