- small is beautiful
- make each program do one thing well
- build a prototype as soon as possible
- choose portability over efficiency
- store numerical data in ASCii files
- use software leverage to your advantage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/lua | |
--[[ | |
Removes lines from a file | |
@param string filepath | |
@param num startline (line number where deletion starts) | |
@param num numlines (number of lines to delete) | |
ex: $ rmlines ~/myfile 45 7 |
NewerOlder