View listdirs.sh
#!/bin/bash
find -maxdepth 1 -type d -print | grep -v \\.
View listhiddenfiles.sh
#!/bin/bash
# Add this one-liner script to the PATH variable and have the power to count the files in a directory from anywhere in the command line
ls -al $1 | grep -E \ \\..*$
View fix_first_ten_files.sh
#!/bin/bash
# Add this one-liner script to the PATH variable and have the power to count the files in a directory from anywhere in the command line
#NAME is the prefix that the files share in common
NAME=$1; ls -1 | grep -E ${NAME}[0-9]{1}\\. | sed -e 'p;s/\([0-9]\)/0\1/g' | xargs -n 2 mv
View filecount.sh
#!/bin/bash
# Add this one-liner script to the PATH variable and have the power to count the files in a directory from anywhere in the command line
ls -1 $1 | wc -l