oche, lik echo but a bit easier to use.

function oche { printf "%s\n" "$@"; }

Alexanders-MacBook-Pro:~ alexanderturner$ oche "a b c"
a b c


Alexanders-MacBook-Pro:~ alexanderturner$ oche a b c
a
b
c


Alexanders-MacBook-Pro:~ alexanderturner$ thing=$(ls -l)
Alexanders-MacBook-Pro:~ alexanderturner$ oche "$thing"
total 98888
-rw-r--r--     1 alexanderturner  staff      1286 20 Mar  2016 #.emacs#
drwxr-xr-x     4 alexanderturner  staff       136 23 Dec  2014 AWS
drwxr-xr-x     6 alexanderturner  staff       204 22 May  2014 Accounts
drwx------     4 alexanderturner  staff       136 25 Oct  2015 Applications
 

...

Comments

Post a Comment

Popular posts from this blog

List to data

print, like echo but simpler and more consistent than oche

Cursor placement with tput