I want to get the full-path director from a script, even if the user enters the ‘./’ or ‘/~’
#!/bin/bash
echo "Enter the directory"
read DIRECTORY #how to store the full-path instead of something like ./
echo "$DIRECTORY"
I want to get the full-path director from a script, even if the user enters the ‘./’ or ‘/~’
#!/bin/bash
echo "Enter the directory"
read DIRECTORY #how to store the full-path instead of something like ./
echo "$DIRECTORY"