Hi folks. I've tried to research this, but haven't found a good answer (could be my harried state).
At any rate, I have records that end with
two commas, a number, two commas
this could be anywhere from
,,01,,
to
,,09875953,,
I need to remove the last two fields (the number... (3 Replies)
I am writing a shell script on SunOS cosuaah01 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-V440
machine. The shell script in.sh looks like this:
install_top=`pwd`
fl2=/d01/applptch/ptchora/iAS/Apache/Apache/cgi-bin/cxtool/display_report.pl
echo $fl2
mv $fl2 $fl2.old
sed 5c\... (6 Replies)
Collegues
I am dealing with raw text files which is extracted from web pages.
I have to find sentances which contains more than 99 words and have to put a "." after the 99th or 98 th word .
Is there any possiblity to it in sed or awk
With regards
Jaganadh.H (5 Replies)
Hello,
I need to use sed to replace a word in file.
My command is this:
sed "s/word_to_replace/'"${INPUT}"'/1 filename
and because INPUT="~@#$%^&*()-_=+{}\|;:<>,./?"
and / is also the delimiter so I'm keep on getting error message
sed: command garbled: ...
any suggestions about how I... (10 Replies)
Hello All,
My problem is:
I want to replace a line from a file with sed. The first word in that line is always the same in every server. The second line is server model, which of course will vary from platform to platform and I need to leave that word as it is. After the second word, I need to... (3 Replies)
Hi
Im running this command on AIX in ksh.
My input file samp1 contains
1
2
123
12345
When I execute the following sed i dont get a matching pattern
sed -n '/{1}/p' samp1
Can anyone help me with this simple thing (3 Replies)
Hello,
I have a file with the follwoing pattern:
Input file:
===========
tcp://xxx:123
8179 YY
1798 YY
tcp://abc:2345
not found
tcp://swt:4945
7356 QQ
tcp://pqr:456
8178 PP
9485 PP
4485 PP (8 Replies)
HI all,
i have a line in a file it cantains
one;two_1_10;two_2_10;two_3_10;three~
now i need to get the output as
one;two_1_abc_10;two_2_abc_10;two_3_abc_10;three~ ( 1 should be replaced with 1_abc for two__10 , and one more thing the number of occurances of two_value_10 will be... (1 Reply)
sort.sh
------
ls -lSr|cat -n/*gives the detailed description o files with a serial number concatenated*/
i=0
n=10
j=$n
if
then
while
do
(sh -C sub.sh $i $j)&
((i++))
((j--))
done
fi
if
then
while
do
(sh -C sub.sh $i $j)& (1 Reply)
Discussion started by: dishak
1 Replies
LEARN ABOUT DEBIAN
jsonbot
JSONBOT(1) jsb manual JSONBOT(1)NAME
JSONBOT - The JSON everywhere bot!
SYNOPSIS
JSONBOT is a remote event-driven framework for building bots that talk JSON to each other over XMPP. This manual page documents briefly the
jsb distribution..
DESCRIPTION
This distribution provides bots built on this framework for console, IRC, XMPP, Convore and WWW on the shell.
USAGE
JSONBOT uses command line options to configure a bot. See the --help option to get more help on a command options or see the corresponding
man page.
the jsb pakage contains the following programs:
* jsb - console version of jsb
* jsb-backup - create backup of JSONBOT datadir
* jsb-convore - convore version of jsb
* jsb-init - create data directory and config examples, default ~/.jsb
* jsb-irc - IRC version of jsb
* jsb-fleet - mix IRC and XMPP bots
* jsb-sed - sed a whole directory
* jsb-stop - stop a running bot
* jsb-tornado - a shell web server based on tornado
* jsb-udp - send udp packets to the bot that will relay the data
* jsb-xmpp - XMPP version of jsb
note: JSONBOT is in BETA stage right now and still subject to change of protocols and API.
see http://jsonbot.googlecode.com. see https://jsonbot.org for documentation on the bot.
SEE ALSO
The program is documented fully on http://jsonbot.org or see http://jsonbot.googlecode.com
SEE ALSO jsb(1), jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-xmpp(1), jsb-fleet(1), jsb-tornado(1), jsb-stop(1), jsb-udp(1)AUTHOR
This manual page was written by Bart Thate <bthate@gmail.com>, for the Debian GNU/Linux system (but may be used by others).
Debian GNU/Linux 22 Nov 2011 JSONBOT(1)