mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-08 14:17:13 +03:00
parent
35ccf3ac83
commit
7a3c5c32d1
@ -82,7 +82,7 @@ RFC_get()
|
|||||||
| sed -r 's/^(.*)(January|February|March|April|May|June|July|August|September|October|November|December) [[:digit:]]{4}(.*)$/\1/' \
|
| sed -r 's/^(.*)(January|February|March|April|May|June|July|August|September|October|November|December) [[:digit:]]{4}(.*)$/\1/' \
|
||||||
| grep -v 'Not Issued' \
|
| grep -v 'Not Issued' \
|
||||||
| sed 's/ .*//; s/^0*//'
|
| sed 's/ .*//; s/^0*//'
|
||||||
printf "\nValid RFC numbers: [ ${MIN_RFC} - ${MAX_RFC} ]\n"
|
# printf "\nValid RFC numbers: [ ${MIN_RFC} - ${MAX_RFC} ]\n"
|
||||||
return 0
|
return 0
|
||||||
# Print list of available RFCs
|
# Print list of available RFCs
|
||||||
elif [[ "${1,,}" == ":describe" ]]
|
elif [[ "${1,,}" == ":describe" ]]
|
||||||
@ -94,7 +94,7 @@ RFC_get()
|
|||||||
| sed 's/# //g' \
|
| sed 's/# //g' \
|
||||||
| grep -o '.*\. ' \
|
| grep -o '.*\. ' \
|
||||||
| sed -r 's/^(.*)(January|February|March|April|May|June|July|August|September|October|November|December) [[:digit:]]{4}(.*)$/\1/'
|
| sed -r 's/^(.*)(January|February|March|April|May|June|July|August|September|October|November|December) [[:digit:]]{4}(.*)$/\1/'
|
||||||
printf "\nValid RFC numbers: [ ${MIN_RFC} - ${MAX_RFC} ]\n"
|
# printf "\nValid RFC numbers: [ ${MIN_RFC} - ${MAX_RFC} ]\n"
|
||||||
return 0
|
return 0
|
||||||
# Format list of RFCs related to keyword: RFC_N RFC_Title
|
# Format list of RFCs related to keyword: RFC_N RFC_Title
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user