Files
lk/shell/scripts.md
2026-04-27 01:30:33 +02:00

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.