Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The history number is printed as "%5d" so we need to handle all possible columns. declare -a lines=( "10000 history 1" " 1000 history 1" " 1 history 1" " 1000* history 1" " 1000 history 1" ) for line in "${lines[@]}"; do echo "${line#*[[:digit:]][* ] }" done
- Loading branch information