Bash - Touch a file and make it executable

function touchx() { touch $1 && chmod ugo+x $1; }; : ' Example 1. Touch a file 2. Make executable 3. Append Data to it 4. Run the file ' function touchx() { touch $1 && chmod ugo+x $1; }; touchx test.sh; echo "echo testing - "$(date +%s) >> test.sh; ./test.sh

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.