Bash: fetch IP Address in a file using GNU grep January 30, 2018 Raaz bash, grep, ipaddress, Linux No comments Edit You can use below command grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" filename.txt Share This: Facebook Twitter Google+ Stumble Digg
BASH: Shell command to list only directories in the current working directory January 12, 2018 Raaz bash, directory, find, list No comments Edit To list only directories of your current working directory you can use below command find ./* -maxdepth 0 -type d -exec basename {} \; Share This: Facebook Twitter Google+ Stumble Digg