13 lines
210 B
Bash
Executable file
13 lines
210 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
if [[ $# -eq 0 ]]; then
|
|
echo "Использование: fc <файл>"
|
|
exit 1
|
|
fi
|
|
if [[ -f "$1" ]]; then
|
|
wl-copy < "$1"
|
|
echo "'$1' +++"
|
|
else
|
|
echo "'$1'+++"
|
|
fi
|