<input type="text" oninput="this.value = this.value.replace(/[^0-9]/g, '')">
#!/bin/bash
mkdir -p ./videos/{240,360,480,720}
FILE_LINKS=$1
RESULT_ROOT="./videos"
RESULT_FILE="links.txt"
HD_PATTERN="^.*\(240\|360\|480\|720\)\.mp4$"
cat $FILE_LINKS | sort | while read LINK;
do
HD=$(echo -e $LINK | sed -e "s%$HD_PATTERN%\1%")
echo "$LINK" >> ${RESULT_ROOT}/${HD}/${RESULT_FILE}
done
var test = document.getElementById("test").value;
// сохраняем введенное значение
localStorage["test"] = test;