about summary refs log tree commit diff
path: root/has.sh
blob: 1a19a5f88b55f666271d87aa06f4af3c5db51570 (plain)
1
2
3
#!/bin/sh
# Has "$1", not in the "$2"th position
cat - | grep "$1" | grep -v "$(echo "12345" | tr "$2" "$1" | tr [:digit:] .)"