#!/bin/bash va=`cut -d"/" -f2 out` #cat out > va echo $va cd $va The issue is that it doesnot cd to the directory after running the script means cd sab. Note : The value of the statement echo $va returns sab Any clue Thanks Again Kaushal -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list