My problem statement is I am having the whole hdfs path that may or may not have part* at the end on this.
Like: /user/root/daily_file/part* or /user/root/daily_file/p*
I will have the above string in one variable in my shell script.
But I want to remove the last part* or p* what ever we have in between "/" and "*".
My code snippet is:
hdfs_path="/user/root/daily_file/part*"
hdfs dfs -test -e $hdfs_path
rc=$?
if [ "$rc" -eq "0" ]
then
echo -e "path exist !!! \n"
if
Due to path -