jan6's snippets of code and stuff, things that aren't big enough to warrant separate script files might come in handy at some point using the following format: : comments about the snippet #!/shebang #EOF which you can run using the first of the following snippets: : print stuff between PAT1 and PAT2 : it's like, pure magic, lol : also "i" and "a" commands have the exact same result at the end, there #!/bin/sh printf "hello\nPAT1\nthis line is printed\nempty line after this\nPAT2\nyeehaw\ninvisible\nPAT1\ncool stuff\nPAT2"| sed -n '/PAT1/,/PAT2/{//!p;};/PAT2/a\\' #EOF : list your RAM, how many slots of it, is it removable, and summary #!/bin/sh LC_ALL=C lsmem --summary=never -o state,size,removable;echo "-------";LC_ALL=C lsmem --summary=only|tail -n +2 #EOF