18 lines
248 B
Markdown
18 lines
248 B
Markdown
---
|
|
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.
|