/
hubbitus
/
shell.scripts
Обзор
Документация
Войти
/
hubbitus
/
shell.scripts
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
used
11 строк
381 B
Pavel Alexeev
Add new script used
01 май 2017, 20:36
01 май 2017, 20:36
187e331
Код
Авторство
О чём код?
#!/bin/bash # Script similar to `seen` - called for file file1 will create file names file1.used. # If argument is symlink also creates on destination folder such file too # # To go by some files and manual process and track current status. : ${1?"Not enough arguments: `basename $0` file"} touch "${1}.used" [ -n "$( readlink -f '$1' )" ] && touch "$( readlink -f "$1" ).used"