Linux: Shell Script for Printing Full Path with Filename
Here is a shell script for printing full path with filename. Suppose you have given your shell script a file name=realpath then It will work like this:
$realpath filename.txt
/home/satya/filename.txt
$realpath folderName
/home/satya/f1.txt
/home/satya/f2.txt, etc
It just print files one level deep.
#!/bin/sh
#find $PWD -name $1 2>/dev/null
#find $PWD… (Continue)