0
votes
2answers
1k views

How to pass a terminal command as an argument to another command

I want to run this command: ls -arth Test*log | tail -1 ... and pass its output as an argument to: open /Applications/Utilities/Console.app <previous output> I would like to do this all in ...
0
votes
1answer
120 views

Python script takes string args with './[];' — Tell terminal to process as literal input?

My script takes a key as its third argument, and it can have any kind of input...including characters that bash complains about. I'd really like to use this one-off script right from the terminal, ...
0
votes
1answer
68 views

How to pass a super long argument in the terminal?

I wrote a python programme, that accept I pass an argument inside it. But when I pass a very very long, it automatically shorten my argument. How can I fix it? Thanks.