On 8/20/20 4:48 PM, David C. Rankin wrote:
while read -r newlnk; do ln -sf "$newlink" ## name will default to last component of $newlink done < newlinks
Or if you want to give each of the symlinks a custom name, edit the 'newlinks' file and add a second column with the custom link name and do:
while read -r newlnk lnkname; do ln -sf "$newlink" "lnkname" done < newlinks
Of course without typos it would be: while read -r newlnk; do ln -sf "$newlnk" ## name will default to last component of $newlink done < newlinks while read -r newlnk lnkname; do ln -sf "$newlnk" "lnkname" done < newlinks -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org