Skip to content

Instantly share code, notes, and snippets.

@real420og
Last active April 30, 2021 07:30
Show Gist options
  • Save real420og/c4fff2bb16e60eaa2e6fcb5a331464d3 to your computer and use it in GitHub Desktop.
Save real420og/c4fff2bb16e60eaa2e6fcb5a331464d3 to your computer and use it in GitHub Desktop.
# посчитать количество пробелов в файле
cat orderNumbers.txt | tr -cd " " | wc -m
# заменить , на пробелы в файле
sed -i -e 's/,/ /g' orderNumbers.txt
#удалить файлы и директории старше 60 минут
find ./ -mmin +60 -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment