Skip to content

Instantly share code, notes, and snippets.

@DinisCruz DinisCruz/bash-command.sh
Last active Oct 12, 2016

Embed
What would you like to do?
simple example to automatically run
# run this on folder to monitor and location of on-change.sh file
fswatch -o . | xargs -n1 -I{} ./on-change.sh
#!/usr/bin/env bash
function test2 {
parse test.xml
}
function parse {
clear
echo '-----'
local file=$1
echo $(app_name='webgoat'; grep $app_name $file | awk -F"\"" '{print $2}')
echo $(date)
}
#!/usr/bin/env bash
. ./bash_parse.sh
test2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.