Skip to content

Instantly share code, notes, and snippets.

View dhq314's full-sized avatar
🐷
搬砖中...

Joe Dean dhq314

🐷
搬砖中...
View GitHub Profile
@dhq314
dhq314 / list_files_in_a_folder.sh
Created October 12, 2015 10:00
list all files in a folder
#!/bin/sh
FILE_PATH="YOUR_FOLDER_PATH"
function list_files() {
for file in `ls $1`
do
file_path=$1"/"$file
if test -f $file_path; then
@dhq314
dhq314 / centos_install_erlang.sh
Last active December 15, 2015 07:49
a shell script under the CentOS install Erlang development environment
#!/bin/sh
erl_url="http://www.erlang.org/download/otp_src_R16B.tar.gz"
prefix="/usr/local/erlang"
yum update -y