Open main menu

Changes

188 bytes added ,  00:26, 6 May 2016
adds an awk idiom to output ls into tsv
awk '{gsub(/^[ \t]+|[ \t]+$/,"");print}'
awk '{$1=$1;print}' # also removes extra space between fields
# This awk idiom can be used to turn command output into spreadsheet-friendly output by separating it with tabs.
# So for example, the output of the ls command:
ls -l | awk -v OFS="\t" '$1=$1'
# insert 5 blank spaces at beginning of each line (make page offset)
4,558

edits