Some improvements:diff --git a/tv-star.sh b/tv-star.sh
index a9b6666..3bfe603 100644
--- a/tv-star.sh
+++ b/tv-star.sh
@@ -8,25 +8,16 @@
SCANBASE="/usr/share/dvb/dvb-t/de-Schleswig-Holstein"
# Folder where the movies are stored.
-# IMPORTANT: Use the full path, don't use ~ for your home!
-# Example:
-# MOVIEFOLDER="/home/tux/tv/"
-MOVIEFOLDER=""
+MOVIEFOLDER=
Doomicide wrote:Here's a little bashscript, I wrote out of boredom, inspired by sunjacks' zsh script.http://ompldr.org/vYjVqOQ#!/bin/bash
XFILE="$HOME/.Xdefaults"
COLS="$(cat $XFILE| grep -Ei urxvt[.*]color[01-9] | sort -n -tr -k2 | cut -d: -f2 | tr -d [:blank:])"
for i in {0..7}; do echo -en "\e[0;3${i}m ▉▉ $(echo "$COLS" | sed -n $(($i+1))'p&#
Hi guys...was trying to use while loop and a sentry to prompt user input again if an invalid option was entered...but somehow I got a "while" unmatched error...The code is as below:
Code:
#!/system/bin/sh
finsh=0
while [ $finish -ne 0 ]
do
echo "Please select an option: "
echo "1. One" echo "2. Two"
echo "3. Three"
echo "4.
I've made a shell script for archiving HTML pages, i.e.
Hi Guys,
I am relatively new to scripting at the moment and am struggling to get the following function to work. For some reason it does not recognise the arithmatic symbol when i select option1. Any help would be greatly appreciated.
Code:
menu ()
{
echo "=============="
echo "Calculator"
echo "=============="
echo "1. Divide"
echo "2.
Hello All,
I am in SunOS usvh3eudv80 5.10. facing problem in my script:
Code:
#!/bin/bash
var1=`date +"%m%d%H%M"%S.zip`
echo " Hi your current dir is :---> $(pwd)";echo " Changing to home dir:"
cd ~ 2>/dev/null || {echo "Change dir failed ....Quiting...." && exit 2 }; ls -lrt
echo ".....
Hi All,
my requirement send a mail with attachment a abc.txt file.
below is the shell script.
Code:
#!/usr/bin/ksh
set -x
#DIR=/appldata/download/mail
MAILTO="krupa.behera@kk.com"
SUBJECT="Report"
BODY="Hi All,"
ATTACH=/projects/psoft/hrdw/pushreports/crons/temp_out
#ATTACH1="$DIR/ahmed1.csv"
(
echo "To: $MAILTO"
echo "Subj
Hi,
I have a .sh file, to email a report of our backups from a linux machine.
I want to used sed or some other linux command to convert special characters in XML files.
Here is an example:
-bash-3.2$ echo "P&G"
P&G
Now I want to change the "&" to "&" so I run:
-bash-3.2$ echo "P&G" | sed -e "s/&/&/ig"
P&G
I got the result I want, but if someone runs the conversion program again,