I am working on a Bash shell script that does something like this:
#!/bin/bash
folder=/mnt
mkdir $folder/folder-`date +%N`
var1=
Now i need to somehow get the full path for the newly created folder into var1. There is going to be created a lot of folders in /mnt so i need to be 100% sure that the path in var1 is pointing to precisely the folder created in the previous line.