~nobuto/bikeshed/lp677049

« back to all changes in this revision

Viewing changes to col1

  • Committer: Dustin Kirkland
  • Date: 2010-11-09 23:24:41 UTC
  • Revision ID: kirkland@ubuntu.com-20101109232441-17u0mcfxfb73wwzs
1.1 => col1.1, 1 => col1, Makefile: *much* to my chagrin,
some users have objected to the use of the 1-character names
of the 1..9 scripts/links;  I'm capitulating and renaming them
to col1..col9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
2
#
3
 
#    1..9 - handy hack to print a column from standard in
 
3
#    col1..col9 - handy hack to print a column from standard in
4
4
#
5
5
#    Copyright (C) 2010 Dustin Kirkland <kirkland@ubuntu.com>
6
6
#
25
25
else
26
26
    ifs="-F "
27
27
fi
28
 
awk "$ifs" '{print $'$(basename $0)'}' "$@"
 
28
b=$(basename $0)
 
29
awk "$ifs" '{print $'${b#col}'}' "$@"