... | ... |
@@ -7,6 +7,16 @@ Bash clipboard of snippets |
7 | 7 |
sed '$!N;s/\n/ /' infile |
8 | 8 |
``` |
9 | 9 |
|
10 |
+# Temporary files |
|
11 |
+```bash |
|
12 |
+BASE=$(basename $0 .sh) |
|
13 |
+TEMPHTML="$BASE.html" |
|
14 |
+TEMPTXT="$BASE.txt" |
|
15 |
+TEMPJSON="$BASE.json" |
|
16 |
+TEMPCOOKIE="$BASE.cookie" |
|
17 |
+TEMPCSV="$BASE.csv" |
|
18 |
+``` |
|
19 |
+ |
|
10 | 20 |
# Clean Exit |
11 | 21 |
```bash |
12 | 22 |
function clean_temp_files() |