REBIRTH
This commit is contained in:
17
shell/scripts.md
Normal file
17
shell/scripts.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
title: Making Scripts
|
||||
tags:
|
||||
- shell
|
||||
---
|
||||
|
||||
Make a script for your regular shell commands.
|
||||
|
||||
```sh
|
||||
name=look
|
||||
echo '#!/bin/sh > ${name}.sh
|
||||
echo 'echo "This script is called $0"'
|
||||
chmod u+x !$
|
||||
./!$
|
||||
```
|
||||
|
||||
Notice the single-quotes, *not* double quotes.
|
||||
Reference in New Issue
Block a user