2022-06-17 18:40:34 +02:00
|
|
|
# Script that sends file to termbin.com
|
|
|
|
|
|
|
|
## Usage:
|
2024-04-07 02:26:43 +02:00
|
|
|
### `. ./send.sh "directory" "file extension" "filename"`, eg. `. ./send.sh . py "*"` - this sends every .py file in corrent directory.
|
2024-04-07 02:11:17 +02:00
|
|
|
|
2024-04-07 02:23:42 +02:00
|
|
|
## issue solved
|
|
|
|
|
2024-04-07 02:28:59 +02:00
|
|
|
7.4.2024, 02:28
|
|
|
|
|
2024-04-07 02:23:42 +02:00
|
|
|
```
|
2024-04-07 02:28:13 +02:00
|
|
|
# use: . ./send.sh "directory" "file extension" "filename", eg. . ./send.sh . py "*" - this sends every .py file in corrent directory.
|
2024-04-07 02:23:42 +02:00
|
|
|
# $3 the filename if glob shoud be quoted by "" like "*"
|
2024-04-07 02:26:43 +02:00
|
|
|
# $2 the ext should be without period e.g. not .txt but only txt
|
2024-04-07 02:23:42 +02:00
|
|
|
```
|
|
|
|
|
2024-04-07 02:11:17 +02:00
|
|
|
## some issue by 1st try:
|
|
|
|
|
|
|
|
7.4.2024, 02:09
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
~ $ echo `date` > date.txt
|
|
|
|
~ $ cat date.txt
|
|
|
|
Sat Apr 6 23:42:10 UTC 2024
|
|
|
|
~ $ . ./send.sh . .txt *
|
|
|
|
cat: can't open './date.txt..txt': No such file or directory
|
|
|
|
|
|
|
|
```
|