We've been getting a lot of XML questions lately, and I suspect it's only going to get worsebetter ... Normal shell utilities just can't handle it and the "proper" solutions, do-everything perl modules or things like xmlstarlet, just make my head ache.
Started coding something tonight. What the mockup can do, right now:
I'm hoping to eventually make it a language to match and rearrange xml, with a built-in event loop sort of like awk's.
Hi all
I have the following which is part of a larger interactive script for adding virtual hosts to Apache's configuration (it was built for non-technical administrators). I'm curious as to whether there is a simpler way of achieving the same thing. All it does is look into the... (3 Replies)
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)
I'm trying to only read price (FLOAT (i.e 1.10, 3.14, etc etc))
If the input is just an integer, I will add a .00 behind. (i.e 3 becomes 3.00 , 20 becomes 20.00)
If the input is without 2 decimal places, I'll add a 0. (i.e 3.1 becomes 3.10)
I tried using the below code, it works but I don't... (6 Replies)
Hello,
I have a script that checks every file with a specific extension in a specific directory. The file names contain some numerical output and I am recording the file names with the best n outcomes.
The script finds all files in the directory with the extension .out.txt and uses awk to... (12 Replies)
I have created this program to get the next month and year. Is there a simpler way.
#!/bin/ksh
string=`cat Date.txt`
year=`echo $string | cut -c 1-4`
month=`echo $string | cut -c 5-6`
echo $year$month
mon=`expr $month + 1`
if ; then
mon=0$mon
echo $mon
fi
if ; then
month=01
... (2 Replies)
Hi All,
I am using SSH Tectia terminal to get the disk space utilization of a particular folder /opt/logs in all the servers one by one using the command df -h and looking through the list of folders manually to get /opt/logs folder disk space used percentage .
The problem here is , it... (2 Replies)
Hi all,
I am trying to grep a file with the word grand and get all the fields.. Then replace multiple spaces with single space and then get 8 th field and add all these numbers . I am able to do it but with so amny commands which i feel can be done in a simpler way
Please let me know if... (4 Replies)
The following bash command line works for the last day of the month. Test by replacing the 1 with tomorrows day of month number
&& echo "Day before tomorrow"Can it be used within crontab? As
* * 28-31 * * && echo "Today ls last day of month" >>/tmp/crontabtestI tried to test crontab with... (1 Reply)
Discussion started by: lsatenstein
1 Replies
LEARN ABOUT DEBIAN
nrss
NRSS(1) NRSS NRSS(1)NAME
NRSS - An ncurses RSS reader
DESCRIPTION
NRSS is an RSS reader built to use minimal amounts of external libraries, using a minimal interface while maintaining a featureful client.
COMMAND LINE USAGE -h Simple help
-v Print version
-c [num]
Set number of columns
-D [path]
Set the configuration directory (default: ~/.nrss/)
-C [path]
Set the configuration file (default: ~/.nrss/config)
-F [path]
Set the feed directory (default: ~/.nrss/feeds)
-L [path]
Set the log file (default: ~/.nrss/log)
INTERNAL USAGE
Within the program you can use the following (default) keys. These can be changed in your configuration file by using the "key" command.
UP or DOWN
Select previous or next item/feed (next) (prev)
PGUP or PGDOWN
Goto previous or next feed (next-feed) (prev-feed)
h Display usage (toggle-usage)
C Toggle collapse all feeds (toggle-collapse-all)
Space Collapse a feed or read a story (default)
g Use the defined browser to goto the item's URL (goto)
x Show all items in feed (toggle-expand)
r Refresh the current feed (refresh)
R Refresh all (refresh-all)
M Mark all read (mark-all-read)
D Redraw screen (redraw)
q Quit NRSS (quit)
CONFIGURATION
The ~/.nrss/config file is where all of the configuration is. You can start by using the example config below.
EXAMPLE CONFIG
default_rate "5"
default_show "30"
default_maxitems "50"
#Add some feeds
add "http://rss.slashdot.org/Slashdot/slashdot" "Slashdot"
add "http://www.digg.com/rss/index.xml" "Digg All"
add "http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml" "BBC"
add "http://www.osnews.com/files/recent.xml" "OSNews"
add "http://distrowatch.com/news/dw.xml" "DistroWatch"
#Change rate for Slashdot
rate "30" "Slashdot"
#These aren't defaults, but examples
browser "/usr/bin/elinks %u"
#Text browsers should enable this
browser_wait "1"
FILES
~/.nrss/config
Main configuration file. For advanced usage, see the online configuration documentation: http://codezen.org/nrss-config
~/.nrss/log
Everyday log file.
~/.nrss/feeds/
This is where the raw XML is stored.
BUGS
None known, but it's not outside of the realm of possibility =P.
HOMEPAGE
http://codezen.org/nrss
AUTHOR
Jack Miller <jjm2n4@umr.edu>
Version 0.3.9 26 February 2008 NRSS(1)