ok, so what i want to do is make some sort of script, either applescript or shell script, that will do the following:
take out from a command in the terminal
put that output into a text file already on my computer.
the only thing is that i need to put the output in the file kinda weird: i need to take it and put each character of output on a new line, but not create new lines
example:
take output of command 'uptime' (up 32 days, 23:09)
place in file 'myFile'
output:
...
key u
key p
key space
key 3
key 2
key space
key d
...
anyone have any idea on how to do this?
thanks in advance
take out from a command in the terminal
put that output into a text file already on my computer.
the only thing is that i need to put the output in the file kinda weird: i need to take it and put each character of output on a new line, but not create new lines
example:
take output of command 'uptime' (up 32 days, 23:09)
place in file 'myFile'
output:
...
key u
key p
key space
key 3
key 2
key space
key d
...
anyone have any idea on how to do this?
thanks in advance