我需要zenity将选定的文件名放入一个没有路径的变量中。我现在拥有的是
file_to_copy="$(zenity --file-selection --title='Select a File')"
echo $file_to_copy
Run Code Online (Sandbox Code Playgroud)
然后打印
/home/blades/Scripts/openwrt-vpn-renew/ze.sh
Run Code Online (Sandbox Code Playgroud)
我只想打印ze.sh。