2 ms·
What's the flag to specify a separator character? paths() { echo $PATH | tr : '\n'; } paths | cut -d / -f 3 paths | column -s / -t paths | sort -t / -k
by twic 8y ago
What's the flag to specify a separator character?
paths() { echo $PATH | tr : '\n'; }
paths | cut -d / -f 3
paths | column -s / -t
paths | sort -t / -k 1
Any more?
- jdeca568 8y agopaths | awk -F / '{ print $1 }' (edit: format)