Sponsored Content
Full Discussion: Can I simplify this script?
Top Forums Shell Programming and Scripting Can I simplify this script? Post 302425464 by aigles on Friday 28th of May 2010 04:22:50 AM
Old 05-28-2010
Try :
Code:
Keep_succeed=6
Keep_failed=2
Keep_other=

File_list=clean_feeds_list

while read feed
do

   case "${feed}" in
     */failed/*)  keep=${Keep_failed}  ;;
     */succeed/*) keep=${Keep_succeed} ;;
     *)           keep=
   esac
   [ -z "${keep}" ] && continue
   find ${feed} -mtime +${keep} -type f | xargs rm 

done <${File_list}<

Jean-Pierre.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

a script to simplify the use of grep

I'm trying to write a script that simplify the use of grep utility. these are the option that I'd like to use with the script " -c -i -l -n -v". When I execute the script none of these option works. I really appreciate any idea or tips regarding this problem. here the code echo " Enter 1-7:"... (2 Replies)
Discussion started by: kemobyte
2 Replies

2. Shell Programming and Scripting

How can I simplify the script

Hi all, How can I simplify following script, Logic is to find two strings (strings are case sensitive) from a file. if ; then if ; then Group=`echo $1_hostname` fi fi Please help me on this. Regards Sudhish s. kumar (8 Replies)
Discussion started by: sudhish
8 Replies

3. Shell Programming and Scripting

Help to simplify with awk

Hi, Need your help guys. I'm trying to tweak my current shell-script to make it run faster. I think a part of the code that takes too long is the splitting of the 1st field of my CSV raw-file to date-time. Below is the 1st column of my CSV file: $ awk -F"," {'print $1'} temp-*|head... (5 Replies)
Discussion started by: daytripper1021
5 Replies

4. Shell Programming and Scripting

simplify the script, check field match to value in a file

Hi Everyone, Below is the script, i feel there should be more simple way to do the same output, my one works, but feel not nice. like using index i feel it is slow (image my file is very large), maybe awk can do one line code? Please advice. # cat 1.txt 1 a 2 b 3 cc 4 d # cat 1.pl... (6 Replies)
Discussion started by: jimmy_y
6 Replies

5. Programming

How to simplify this perl script to a cleaner simpler look?

my $branch_email_e = $FORM{r_Branch}; my $hostbranch_email_e = $FORM{r_Host_Branch}; my $branch_email_f = $FORM{r_Direction_generale}; my $hostbranch_email_f = $FORM{r_Direction_generale_daccueil}; my $branch_realname_e = ''; my $branch_realname_f = ''; ... (4 Replies)
Discussion started by: callyvan
4 Replies

6. Shell Programming and Scripting

Simplify Bash Script Using "sed" Or "awk"

Input file: 2 aux003.net3.com error12 6 awn0117.net1.com error13 84 aux008 error14 29 aux001.ha.ux.isd.com error12 209 aux002.vm.ux.isd.com error34 21 alx0027.vm.net2.com error12 227 dux001.net5.com error123 22 us008.dot.net2.com error121 13 us009.net2.com error129Expected Output: 2... (4 Replies)
Discussion started by: sQew
4 Replies

7. Shell Programming and Scripting

simplify/combine if statements would be nice

below is something i inherited: if && && ; then HOST_SELECT="-m quadcore" fi if && && ; then HOST_SELECT="-m quadcore" fi if && && ; then HOST_SELECT="-m octocore1" fibelow is what i changed it to: if && && ; then HOST_SELECT="-m quadcore"... (2 Replies)
Discussion started by: crimso
2 Replies

8. Shell Programming and Scripting

simplify regular expressions

Hi can anyone help me with how to simplify this regular expression ---------- Post updated at 09:16 PM ---------- Previous update was at 09:11 PM ---------- IS THIS RIGHT ? (3 Replies)
Discussion started by: drew211
3 Replies

9. Shell Programming and Scripting

How to simplify this code?

hi guys need your help...how to simplify this script... for i in `cat dmp.txt` do model=$i more $model | grep : | cut -d ":" -f 2- | grep : | grep -v "=" > temp1 more $model | grep / | cut -d ":" -f 2- > temp2 more $model | grep = | cut -d ":" -f 2- > temp3 more... (2 Replies)
Discussion started by: zulabc
2 Replies
LIFEREA(1)						      General Commands Manual							LIFEREA(1)

NAME
Liferea - GTK desktop news aggregator SYNOPSIS
liferea [OPTIONS] DESCRIPTION
Liferea (Linux Feed Reader) is an aggregator for online news feeds. It can be used to maintain a list of subscribed feeds, browse and search through their items and displays their contents. Additionally Liferea allows to sync subscriptions and read headlines with online accounts of Google Reader and TinyTinyRSS. OPTIONS
Liferea options: --version output version information and exit --help display a option overview and exit --mainwindow-state=STATE Start Liferea with its mainwindow in STATE: shown, iconified, hidden --debug-all Print debugging messages of all types --debug-cache Print debugging messages for the cache handling --debug-conf Print debugging messages of the configuration handling --debug-gui Print debugging messages of all GUI functions --debug-html Enables HTML rendering debugging. Each time Liferea renders HTML output it will also dump the generated HTML into ~/.lif- erea_1.6/output.xhtml. --debug-parsing Print debugging messages of all parsing functions --debug-performance Print debugging messages when a function takes too long to process --debug-trace Print debugging messages when entering/leaving functions --debug-update Print debugging messages of the feed update processing --debug-verbose Print verbose debugging messages DBUS INTERFACE
To allow integration with other programs Liferea profives a DBUS interface for automatic creation of new subscriptions. The script liferea- add-feed is a convenient way to use this interface. Just pass a valid feed URL as parameter and the feed will be added to the feed list. You can also pass non-feed URLs to use feed auto discovery. Example: liferea-add-feed "http://www.newsforge.com/newsforge.rss" Please note that Liferea needs to be running for liferea-add-feed to work. ENVIRONMENT
http_proxy If a proxy is not specified in the Liferea preferences (which uses the proxy settings in gconf), then Liferea will use the proxy specified in $http_proxy. $http_proxy should be set to a URI specifying the desired proxy, for example 'http://proxy.exam- ple.com:3128/'. FILES
/usr/share/liferea/css/ Contains default stylesheets for feed display /usr/share/liferea/opml/ Contains default feedlists ~/.liferea_1.8/ Contains user feedlist and feed cache ~/.liferea_1.8/liferea.db Sqlite3 database with all subscriptions and headlines ~/.liferea_1.8/liferea.css Stylesheet that can be edited by user AUTHOR
This manual page was written by Lars Lindner <lars.lindner@gmail.com>. Sep 14, 2011 LIFEREA(1)
All times are GMT -4. The time now is 07:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy