#!/bin/bash
for file in $HOME/*;
do
if ; then
rm -i $file > /dev/null
echo "$?"
echo "$file has been deleted"
fi
done
Been trying to learn shell scripting for a week or so now, when i run the script it doesnt display an error message, seems like it runs fine, however it doesnt delete... (10 Replies)
Hi below is my script
for((i=0;i<=$TOTAL;i++))
do
echo "IP's created are $s1.$s2.$s3.$s4"
s4=`expr $s4 + 1`
done
where s1,2,3,4 are input varibles
below error occurs while running the script
syntax error at lin 11: '(' unexpected
... (12 Replies)
for loop for string to check each path file count.
can someone please help me out regarding this..
purpose is that it will gives the number of files inside the that directory..
i am bit confused in doing the loop for the above can someone plz fix.
PATH1=/home/data1
PATH2=/home/data2... (2 Replies)
Hi,
I have a doubt in usage of while loop in Shell script as Iam new to this.
My requirement is that,I have two different directories containing some files which move files to other folder after parsing is done.
In my script i wanted to add a while loop which checks for the count in these two... (5 Replies)
hi i was wondering if someone can help me with a while loop..i have been looking at this for hours and dont no wut to do..
i have to make a menu style.. to have a beeter understanding i have linked a photo at the bottom...
http://www.mypicx.com/uploadimg/772204432_08022011_1.pngand then
... (1 Reply)
hi.. this is shell scripting lab15.sh
i dont understand this lab i am at the screen shot part. i was wondering if someone can take a quick look at this lab i have linked the doc below. i dont know where to start
i have did the
Required Errorlevels
Errorlevel # but dont... (1 Reply)
Hi Team,
I have created a script and using FOR LOOP like this and it is working fine.
for Month in 201212 201301 201302 201303
do
echo "Starting the statistics gathering of $Month partitions "
done
But in my scripts the " Month " variable is hard-coded. Can you please any one... (3 Replies)
Hi ,
Please excuse me for opening a new thread i am unable to find out the syntax error
in my if else condition inside for loop in awk command ,
my actual aim is to print formatted html td tag when if condition (True) having string as "failed",
could anyone please advise what is the right... (2 Replies)
Hi,
I am using ksh , when i try to use for loop i am getting the expected output.
$for variable in $(ps -fu user | grep -i something/ | grep -i something | grep -v grep | awk '{print $2}');do
> grep $variable /tmp/some_path/*/*
> done
when tried the below to remote server, getting... (4 Replies)
Discussion started by: karthikram
4 Replies
LEARN ABOUT DEBIAN
tv_remove_some_overlapping
TV_REMOVE_SOME_OVERLAPPING(1p) User Contributed Perl Documentation TV_REMOVE_SOME_OVERLAPPING(1p)NAME
tv_remove_some_overlapping - Remove some overlapping programmes from XMLTV data.
SYNOPSIS
tv_remove_some_overlapping [--help] [--output FILE] [FILE...]
DESCRIPTION
Read one or more XMLTV files and write a file to standard ouput containing the same data, except that some 'magazine' programmes which seem
to contain two or more other programmes are removed.
For example, if 'Schools TV' runs from 10:00 to 12:00, and there are two programmes 'History' from 10:00 to 11:00 and 'Geography' from
11:00 to 12:00 on the same channel, then 'Schools TV' could be removed. A programme is removed only if there are two or more other
programmes which partition its timeslot, which implies that it and these other programmes must have stop times specified.
To avoid throwing away any real programmes, no programme will be discarded if it has content data other than title and URL.
Filtering this tool won't remove all overlapping programmes but it will deal with the 'big magazine programme containing smaller
programmes' data commonly seen from listings sources.
--output FILE write to FILE rather than standard output
SEE ALSO xmltv(5).
AUTHOR
Ed Avis, ed@membled.com
perl v5.14.2 2004-01-01 TV_REMOVE_SOME_OVERLAPPING(1p)