A Quote from qotd.org
Archives
- September 2017
- June 2017
- February 2017
- June 2016
- December 2015
- September 2015
- July 2015
- June 2015
- January 2015
- November 2014
- August 2014
- June 2014
- May 2014
- April 2014
- February 2014
- January 2014
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- March 2013
- February 2013
- January 2013
- November 2012
- August 2012
- June 2012
- February 2012
- January 2012
- December 2011
UserOnline
Recent comments
Category Archives: Uncategorized
What process is using how much swap memory
I found this interesting script that prints out a list of processes that are using swap space. I changed the output to suppress the PIDs that aren’t using swap. #!/bin/bash # Get current swap usage for all running processes # … Continue reading
Posted in Bash, Hardware, Linux, Uncategorized
Leave a comment
A word from the author.
Today I read some comments here in the blog. I want to thank all of you for the nice words about this blog. Unnecessary to mention that comments are appreciated. I will try to keep this blog on a more … Continue reading
Posted in Uncategorized
Leave a comment
Bash: How to trim a string or a variable
Sometimes you are looking for a simple way to get rid of leading or tailing spaces in a string or variable. Here’s a function I usually use in my bash scripts: function trim() { trvar=$1 trvar=”${trvar#”${trvar%%[![:space:]]*}”}” trvar=”${trvar%”${trvar##*[![:space:]]}”}” echo -n “$trvar” … Continue reading
Posted in Bash, Linux, Uncategorized
1 Comment