09-27-2009
no it's a real task
i'm just feeding antispam bot with tons of text
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The line is like this
+abc+def+mgh+ddsdsd+sa
i.e. words seperated by +. There is a plus in the beginning.
i want to conver this line to
abc, def, mgh, ddsdsd, sa
please provide the logic in the form of a shell script
Thanks in advance (3 Replies)
Discussion started by: skyineyes
3 Replies
2. Shell Programming and Scripting
I have some txt files. I have to create another text file which contains the portion starting from the format "Date Sex Address" to the end of the file. While using grep -n on Date it also gives me the previous line containg Date. and also Date may be DATE in some files.
My file is like this... (10 Replies)
Discussion started by: Amiya Rath
10 Replies
3. Shell Programming and Scripting
can u help me out to print last two words of each sentence of a file.
for example.
contents of input file:
i love songs
my favourite songs
sent
songs all kind
good buddy
Ouput file should contain:
love songs
favourite songs
sent
all kind
good buddy (5 Replies)
Discussion started by: pradeepreddy
5 Replies
4. Shell Programming and Scripting
HI,
cat test
abc
echo "def" >> test
output is
cat test
abc
def
the needed output is
cat test
abc def
and so on (5 Replies)
Discussion started by: jobycxa
5 Replies
5. Shell Programming and Scripting
Hello all
i know it is pretty hard one but you will manage it all
after noticing and calculating i find a rhythm for the file i want to edit
to copy the last 12 characters in line but the problem is to add after first 25 characters in same line
in other way too copy the last 12 characters... (10 Replies)
Discussion started by: princesasa
10 Replies
6. Shell Programming and Scripting
Hello all
i tried awk , cut but i think something missing
i have this line
@@XYMONDCHK-V1|.acklist.|developer_instead|rendy_google_yagom|1323977582|1323979382|1323979382|1|admin|test case
i want cut some words to be in new line like this... (6 Replies)
Discussion started by: mogabr
6 Replies
7. Shell Programming and Scripting
Hi All
I have to search servers name say like 1000+ "unique names" line by line in child.txt files in another file that is a master file where all server present say "master.txt",if child.txt's server name matches with master files then it print yes else no with server name. (4 Replies)
Discussion started by: netdbaind
4 Replies
8. Shell Programming and Scripting
Hi Folks,
I have a text file with a thousand lines consisting of words or a group of words separated by commas.
I would like to randomize / shuffle the words on each line.
Eg; file.txt
Linux,Open,Free,Awesome,Best Things in Life,The Greatest
Laptop,PC,Tablet,Home Computers,Digital... (2 Replies)
Discussion started by: martinsmith
2 Replies
9. UNIX for Beginners Questions & Answers
Hi,
Is there any way I can shuffle the numbers randomly. I have been trying to google and I found lots of 'generator' but is it possible to find the background logic to create randomness?
Thanks, (3 Replies)
Discussion started by: Indra2011
3 Replies
10. Shell Programming and Scripting
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies
LEARN ABOUT DEBIAN
ibid-factpack
IBID-FACTPACK(1) Ibid - Multi-protocol Bot IBID-FACTPACK(1)
NAME
ibid-factpack - Factoid-package management utility for Ibid
SYNOPSIS
ibid-factpack [-s] factpack-file
ibid-factpack -r [-f] factpack-name
ibid-factpack -h
DESCRIPTION
This utility is for adding and removing sets of packaged factoids, known as factpacks, from your Ibid's factoid database.
The default mode is factpack loading. The factpack-file specified is loaded into the bot's database. Should the pack contain any facts
with the same name as an existing fact in the bot's database, loading will be aborted, unless the -s option is supplied.
Factpacks can be gzipped if the filename ends with .gz.
When invoked with the -r option, the named factpack (original import filename minus the extension) will be removed from the bot. If any of
the facts contained in that pack were modified while loaded in the bot, unloading will be aborted, unless the -f option is supplied.
OPTIONS
-r, --remove
Remove the named factpack, rather than importing.
-f, --force
Force removal, if facts in the factpack were modified by users.
-s, --skip
Skip facts that clash with existing factoids, during import.
-h, --help
Show a help message and exit.
FACTPACKS
Factpacks are JSON-encoded text files containing a list of facts. Each fact is a tuple of two lists: fact-names, fact-values. The same
substitutions are available as in normal online Factoids.
Example:
[
[["Hello", "Hi"], ["<reply> Hi There", "<action> waves"]],
[["Bye"], ["<reply> kbye $who", "<reply> Cheers"]]
]
FILES
ibid.ini
Locates the database to act upon by looking for the [databases].ibid value in the bot configuration file in the current directory.
SEE ALSO
ibid(1), ibid.ini(5), http://ibid.omnia.za.net/
Ibid 0.1 March 2010 IBID-FACTPACK(1)