implement opening by line number

This commit is contained in:
NRK
2021-04-29 04:30:06 +06:00
parent a9ea53f1fb
commit 21062ccec8

4
sxbm
View File

@ -141,6 +141,10 @@ bm_open(){
local FORCE="1"
shift
;;
[0-9])
local LINK=$( awk "NR == $1 {print \$1}" $DATA_FILE )
shift
;;
*)
local LINK=$( bm_list "-c" "$@" | awk '{print $2}' )
shift "$#"