Posts tagged with: code
Accessing the Value of a Variable
|
September 22, 2017
| Development
My issue came up because I was trying sort and put into columns the output of a command. The output had tabs to separate the columns and spaces in the name. How do I separate into ...
Read More
AWS cli --query - select tag by value not tab delimitated
|
June 21, 2017
| Development
AWS CLI text output not tab delimited When I was doing some basic outputting of data form the AWS cli, I noticed that the output was not on a single line. It seems that when you qu...
Read More
What processes are using swap and how much?
|
May 1, 2017
| Development
Based on some investigation I see the following link gives me the script to show what processes is using swap and how much. Swap used by process #!/bin/bash # find-out-what-is-usin...
Read More
Basic blank bash script
|
April 3, 2017
| Development
This is my starting blank bash scipt. To check your script for proper syntax and prevent bugs use ShellCheck . #!/bin/bash ##### #ident "@(#) blank_script v 1.0 2017/02/16" # # Aut...
Read More
Useful Linux commands
|
March 2, 2017
| Development
Commands I have come across that I find very useful. What processes are running on what ports for d in `ss -ltn | awk '{print $4}' | rev |cut -d\: -f 1 | rev `; do sudo fuser -v -n...
Read More
Get reserved space for ext3 and ext4 devices on Linux
|
March 1, 2017
| Development
#!/bin/bash ##### #ident "@(#) get_reserved_space.sh v 1.0 2017/02/20" # # Author: Raymond Keckler # # returns the percent amount of reserved space a # device has set. Uses tune2fs...
Read More
