10-07-2018
Quote:
Originally Posted by
Xterra
. . . when I run sed '1i>sometext, . . .
The absence of a second single quote makes it difficult to guess what exactly you want to do - a redirection, or inserting a <-gt> sign plus sometext?
Howsoever, for insertion, the man page says
sed wants a "backslash <new line>" combination - try this and report back.
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
running linux ppc on a mac 7200... can someone please tell me how to do this... it says something about a red hat installer?? (2 Replies)
Discussion started by: ignus
2 Replies
2. UNIX for Dummies Questions & Answers
Quick question:
When I load up Terminal or X-Windows on my Mac, and the prompt comes up...what folder am I starting in? (2 Replies)
Discussion started by: liquidcross
2 Replies
3. Shell Programming and Scripting
Hello,
from the gnu sed manual, I should be able to do this:
`\(REGEXP\)'
Groups the inner REGEXP as a whole, this is used to:
* Apply postfix operators, like `\(abcd\)*': this will search
for zero or more whole sequences of `abcd', while `abcd*'
... (3 Replies)
Discussion started by: Allasso
3 Replies
4. Shell Programming and Scripting
please help in making sed singleline command
i need to insert dos new line (CR LF) before
" 34 matching device(s) found on \\cpu1."
" 6 matching device(s) found on \\cpu7."
" 102 matching device(s) found on \\mainserver."
the problem is that sometimes there are both CR LF before strings and... (1 Reply)
Discussion started by: xserg
1 Replies
5. UNIX for Dummies Questions & Answers
Hi there,
I'm new to UNIX and have the following question:
At work a Solaris Unix system is used. I'm not sure if they have gnu sed installed so I tried using the command "sed -r" and got the error:
"Illegal option --r"
Does this mean that gnu sed is definitely not installed on the system... (8 Replies)
Discussion started by: js8765
8 Replies
6. OS X (Apple)
Hi, I'm and Android developer using Mac OSX 10.7. I use Dsixda's Android Kitchen to develop my roms. I had it working fine on 10.6.8 and it still worked flawlessly when updating to 10.7. I installed Macports, and installed some packages, and then tried to run the Android Kitchen. I CD'd to the... (3 Replies)
Discussion started by: dmeadows013
3 Replies
7. Shell Programming and Scripting
I have been living with this problem with GNU sed v4.1.4 for a long time, but now I really need to figure it out.
When using a list in either an address or a search, the expression is matching lower and upper-case letters. works as it should.
For example, if I run
sed -nr "// p"... (7 Replies)
Discussion started by: nctrader
7 Replies
8. Shell Programming and Scripting
Just posted on another fellow's question using ed, but I wanted to know about doing it with sed on Unix. For example - I have a file of an unknown length, but I want to add a line after the shell declaration (Line 2). If possible, I'd like the example to be able to just substitute in a number and... (2 Replies)
Discussion started by: Vryali
2 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)