surf/save_screen.sh

8 lines
160 B
Bash
Raw Normal View History

#!/bin/sh
filename=$(basename -s ".html" "$1")
file=$(zenity --file-selection --save --filename="$filename.html")
if [ -n "$file" ]; then
cat > "$file"
fi