ls\x20x for `ls x`: How to obfuscate required space token delimiter in bash shell, with hex/octal of space?
Is there any way to substitute the hex/octal value of a space, for a required space, in bash?
Like: ls\x20filename #NO space allowed, for my puzzle. (echo something also not allowed, because of space!) I tried web searches of title, and tried using backslashes, quotes and backtick. Similarly, is there any way, with like just \x77, to enter the w (who) command? (no w and nothing with spaces) Thanks Gurus ;) Why? I just want to learn tricks. NO evil intents:D Yes, I know echo x is similar, but no space allowed; echo\x20x fails. |
For \x to be interpreted, you need the -e option to echo.
echo -e "ls\x20filename" [EDIT]I think I am misreading your question - Sorry[/EDIT] |
No problem on your space violation;)
You just rescued the ZRT list from exceeding 100, onto a 3rd page:D LQ traffic is increasing :thumbsup: |
I have thought about this some more and I do not think it is possible. From 'man bash'
Quote:
Quote:
|
All times are GMT -5. The time now is 11:01 PM. |