Search Results

Search: Posts Made By: jacksam007
7,561
Posted By jacksam007
Urgent!! Bash - problem using CD with variable
I am extracting directory path from file which is stored in a variable.

while read inputline
do
script_name=`echo $inputline | cut -d' ' -f2`
cd $script_name
done < path_scripts.txt

where...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 07:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy