Various Linux scripts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
275 B

#!/bin/bash
#Создан: Пт 26 фев 2016 21:39:58
#Изменён: Пт 26 фев 2016 21:39:58
#- file -> [ ] file
for i in "$@"; {
if [[ ! "$i" =~ \[.\]\ .* ]]; then
echo -n $i
echo -ne '\000'
echo -n "[ ] $i"
echo -ne '\000'
fi
} | xargs -0 -n2 mv -v