Categories
CyberSecurity Shell Scripting Uncategorized

Securing your script

Figuring out how to secure your shell script can be difficult. One of the great advantages to using a language such as PHP is some of the security items are already built into the functions you use. Many people believe this makes PHP more secure; however the same amount of security can be achieved with […]

Categories
Linux Nix Shell Scripting Unix

Loopy scripts!

Learning how to use a loops in any language is the WOW point for most people. That moment when they go from “I don’t see the point in this” to “I can use this to rule the world.” Most programing languages have three loops and they are similar or identical in what they do and […]

Categories
Shell Scripting

Bash programers should read more

One of the most misunderstood commands in bash is read. I consider this a shame because it’s one of the most useful. I was reminded of this recently when someone asked me to look over a shell scripting manual they had written. When I came to the read command there was less than a page […]

Categories
Shell Scripting

Shell scripting and the Pipe

Pipe may be the most useful tool in your shell scripting toolbox. It is one of the most used, but also, one of the most misunderstood. As a result, it is often overused or misused. This should help you use a pipe correctly and hopefully make your shell scripts much faster and more efficient. Most […]

Categories
Shell Scripting

Advanced Conditionals in BASH

Conditionals are one of the most misunderstood parts of bash scripting. In a programing language you use an `if` statement. This is normally one of the internal functions of the language and it starts with the statement and moves to the expression. Begin them like this: C, PHP : if (expression) Go, python, ruby: if […]