This is an old revision of the document!
Relational operators
*Remember your WildCards!!! (?*[ ][ *])
Regular Expressions
————————————————————————
We were asked to preform a solution for a problem to rearrange our ls -l list like this :
[filename]:(perms), user/group.
the solution was:
ls -l | grep -v '^total' | sed 's/ */ /g' | sed 's/^\(……….\) [0-9][0-9]* \([a-z][a-z0-9]*\) \([a-z][a-z0-9]*\).* \(.*\)$/[\4]:(\1),\2\/\3/g'