3 ms·
Start every script with the boilerplate #!/bin/bash if [[ `wc -l $0|cut -f 1 -d ' '` -gt 100 ]] then echo "No, this is too long!" exit fi
by iso1631 4y ago
Start every script with the boilerplate
#!/bin/bash
if [[ `wc -l $0|cut -f 1 -d ' '` -gt 100 ]]
then
echo "No, this is too long!"
exit
fi