While using mv or rm command I get command line length error (Argument list too long error). How do I find out current running shell command line length limitations? How do I overcomes these limitations while writing UNIX / BSD / Linux shell utilities?
I‘m writing a wrapper bash shell script that will get the last argument (a domain name) from the command line into a shell variable called $_domain. I need to find all other parameters before last parameter in [email protected] and stored in a shell variable called $allargs. So that I can pass them as follows:
/path/to/real/binary “$allargs” “$_domain”
How do I do this using bash shell under Unix like operating systems?