반응형 Development16 .gitignore reset git rm -r --cached . git add . git commit -m ".gitignore reset" git push 2020. 12. 2. Get total files size from a file list while read filename ; do stat -c '%s' $filename ; done < output | awk '{total+=$1} END {print total}' 2020. 11. 10. Check Files in list from file exist or doesn't exist in directory #!/usr/bin/env bash #Check Files in list from file exist or doesn't exist in directory. if [ $# -eq 0 ] || [ $# -eq 1 ] then echo "You must pass the path to file with the list and the path to directory to check files. \nsh [check-file-exist-from-list.sh](http://check-file-exist-from-list.sh/) path/to/file path/to/directory" exit 1 fi while read -r file; do echo "$2$file" if [ -e "$2/$file" ]; th.. 2020. 11. 9. How to install mcrypt to PHP 7.2 on CentOS 7 yum install wget php72w-devel gcc make autoconf libmcrypt libmcrypt-devel -y wget https://pecl.php.net/get/mcrypt-1.0.3.tgz tar xvf mcrypt-1.0.3.tgz cd mcrypt-1.0.3 phpize ./configure --with-php-config=/usr/local/php/etc/bin/php-config make && make install remove comment "extension=mcrypt.so" in php.ini file service httpd restart 2020. 10. 29. 이전 1 2 3 4 다음 반응형