Linux Bash: Little start script for my pc here

Linux Bash: Little start script for my pc here

I wrote a little script for moving and deleting files in the download folder

The RSS files are for the RSS. Sometimes you click on the RSS feed icon and on some website the file extension will download, and it will not open the .xml website where you copy the URL into your RSS feed program.

In my settings, I’m aware of doing it, that the PDF files will be downloaded onto my pc. I don’t want to see it in the browser.

For my work here at the pc, I need the mouse pad editor (because gedit does not have a zoom options) and my Firefox browser.

#!/bin/bash

clear


echo "---------------------------------------------------"
echo "Guten Morgen"
echo "---------------------------------------------------"

echo "Moving the PDF files to the folder PDF in /home/sven/"
echo "---------------------------------------------------"

if [ ! -f Downloads/*.pdf ]; then
	echo "There are no PDF files anymore"
else
	mv Downloads/*.pdf PDF/
	echo "The PDF files were moved to the folder PDF"
fi

echo "--------------------------------------------------"
echo "Checking if there are rss files in the folder Download"
echo "--------------------------------------------------"

if [ ! -f Downloads/*rss ]; then
	echo "There are no rss files anymore"
else
	rm Downloads/*.rss
	echo "The downloaded RSS files are deleted"
fi

if [ ! -f *.pdf ]; then 
	echo "No PDF files in the home directory"
else
	mv *.pdf PDF/
	echo "PDF files were moved to the folder PDF"
fi

echo "--------------------------------------------------"

echo "Starting of two programs Mousepad and or Firefox"

echo "--------------------------------------------------"

echo "Starte den Mousepad Editor"

read -p "Do you want to start the mousepad editor now? (yes/no): " mousepadquestion

if [[ "$mousepadquestion" == "yes" || "$mousepadquestion" == "y" ]];then
	echo "Mousepad Editor starts"
	mousepad &
else
	echo "Ok, you don't need the Mousepad editor at the moment." 
fi

echo "Starte den Mousepad Editor"

read -p "Do you want to start the firefox browser now? (yes/no): " firefoxquestion

if [[ "$firefoxquestion" == "yes" || "$firefoxquestion" == "y" ]];then
	echo "Firefox starts"
	firefox &
else
	echo "Ok, you don't need the Firefox at the moment." 
fi
Die Kommentare sind geschlossen.