Some common shell scripts too
Getty Ritter
9 years ago
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
FILENAME=$(mktemp)
|
| 4 |
cat >$FILENAME
|
| 5 |
echo $FILENAME⏎
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
if [[ "$1" = /* ]]; then
|
| 4 |
firefox file://$1
|
| 5 |
else
|
| 6 |
firefox file://$(pwd)/$1
|
| 7 |
fi
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
if [[ "$1" = /* ]]; then
|
| 4 |
surf file://$1
|
| 5 |
else
|
| 6 |
surf file://$(pwd)/$1
|
| 7 |
fi
|