G

Untitled

public
Guest May 15, 2024 Never 35
Clone
Plaintext paste1.txt 12 lines (10 loc) | 414 Bytes
1
#!/bin/bash
2
3
# Имя этого скрипта
4
script_name=$(basename "$0")
5
6
# Получение файлов
7
for file in $(find . -type f -not -name "$script_name"); do
8
echo "**Получение содержимого файла $file:**"
9
response=$(curl -s -F "file=@$file" https://httpbin.org/post)
10
file_content=$(echo "$response" | jq -r '.files.file')
11
echo "$file_content"
12
done