1.3
Add line
, which prints a specific line of the input using the option line=
or a range of lines using min=
and/or max=
, or both. To print the header (first) line of a file and lines 101 to 200:
line line=1 min=101 max=200 file.txt
Add lwhich
, which reports the line number(s) at which a value (val=
) is found in a column (col=
, which defaults to 1 as with all tinyutils which operate on columns). To find the line number(s) of the longest line(s) in file.txt:
len file.txt | lwhich val=$(len file.txt | max)
Added the Makefile targets 'make linkscript
' and 'make copyscript
', which create scripts linkscript.sh
and copyscript.sh
, respectively. These will, when run, create symbolic links in the current directory to all tinyutils or make copies of all tinyutils into the current directory. Useful for setting up tinyutils for command-line use. If $HOME/bin
is included in the PATH
, this will create symbolic links to all tinyutils so they can be found by the shell:
make linkscript
T=$PWD
cd $HOME/bin
$T/linkscript.sh