opening linked files
linux_milano at yahoo.it
Mon Jul 30 08:05:00 BST 2007
Scott Bicknell wrote:
> Write a shell script that changes to the directory you want, then
> runs the program and loads a file from its command-line
Thank you for all replies, that helped to devise a script to open files (lyx
files in my case) in their actual directory.
Here included my script, to be associated to .lyx files
if [ ! -h $1 ];then
if [ -f $1 ];then # it is a regular file
elif [ -d $1 ];then
echo $inp " is a directory"
echo $inp "not a regular file"
elif [ -h $inp ]; then # it is a symbolic link
file=$(readlink -f "$inp")
(cd $fpath && $open $fname)
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
More info: http://www.kde.org/faq.html.
More information about the kde