Programming

Looping through the content of a file in Bash

Suppose you have this file: $ cat /tmp/test.txt Line 1 Line 2 has leading space Line 3 followed ...

SSH Tunnels

Bash script found here: https://gist.github.com/scy/6781836 -fRun in the background before command execution. -NDon’t execute any commands -TDisable pseudo-tty ...

How to extract substring in Bash – nixCraft

Extract substring in Bash The syntax is: ## syntax ## ${parameter:offset:length} The substring expansion is a bash feature. ...

Bad Behavior has blocked 42 access attempts in the last 7 days.