09-16-2005
"\1" doesn't have anything to paste.
echo $Newpath | sed 's/^\(.*\)\/.*$/\1/'
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is what I tried:
vara=${varb}_count
(( vara += 1 ))
Thanks for help (4 Replies)
Discussion started by: pa3be
4 Replies
2. Shell Programming and Scripting
Hello,
i have another sed question.. I'm trying to do variable substition with sed and i'm running into a problem.
my var1 is a string constructed like this:
filename1 filerev1 filepath1
my var2 is another string constructed like this:
filename2 filerev2 filepath2
when i do... (2 Replies)
Discussion started by: alrinno
2 Replies
3. Shell Programming and Scripting
I want to instert Category:XXXXX into the 2. line
something like this should work, but I have somewhere the wrong sytanx. something with the linebreak goes wrong:
sed "2i\\${n}Category:$cat\n"
Sample:
Titel Blahh Blahh abllk sdhsd sjdhf
Blahh Blah Blahh
Blahh
Should look like... (2 Replies)
Discussion started by: lowmaster
2 Replies
4. Shell Programming and Scripting
Hi all,
I have a variable say var1 (output from somewhere, which I can't change)which store something like this:
echo $var1
name=fred
age=25
address="123 abc"
password=pass1234
how can I make the variable $name, $age, $address and $password contain the info?
I mean do this in a... (1 Reply)
Discussion started by: freddy1228
1 Replies
5. Shell Programming and Scripting
Dear all,
I have basic knowledge of Unix script and her I am trying to process variable length and variable format CSV file.
The file length will depend on the numbers of Earnings/Deductions/Direct Deposits.
And
The format will depend on whether it is Earnings/Deductions or Direct Deposits... (2 Replies)
Discussion started by: chechun
2 Replies
6. Shell Programming and Scripting
Hi,
I am trying to do the following thing
var='date'
$var
Above command substitutes date for and in turn runs the date command and i am getting the todays date value.
I am trying to do the same thing as following, but facing some problems,
unique_host_pro="sed -e ' /#/d'... (3 Replies)
Discussion started by: gvinayagam
3 Replies
7. Shell Programming and Scripting
can anyone please help me with this:
i have written a shell script and a stored procedure which has one OUT parameter. now i want to use that out parameter as an input to the unix script but i am getting an error as variable not found. below are the unix scripts and stored procedure...
... (4 Replies)
Discussion started by: swap21783
4 Replies
8. Red Hat
Hi all,
Hereby wish to have your advise for below:
Main concept is
I intend to get current directory of my script file.
This script file will be copied to /etc/init.d.
A string in this copy will be replaced with current directory value.
Below is original script file:
... (6 Replies)
Discussion started by: cielle
6 Replies
9. Shell Programming and Scripting
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Discussion started by: danish0909
5 Replies
10. UNIX for Advanced & Expert Users
I have a below syntax its working fine...
var12=$(ps -ef | grep apache | awk '{print $2,$4}')
Im getting expected output as below:
printf "%b\n" "${VAR12}"
dell 123
dell 456
dell 457
Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
Discussion started by: sam@sam
5 Replies
LEARN ABOUT DEBIAN
poe::component::irc::projects
POE::Component::IRC::Projects(3pm) User Contributed Perl Documentation POE::Component::IRC::Projects(3pm)
NAME
POE::Component::IRC::Projects - A listing of projects that use POE::Component::IRC
SYNOPSIS
perldoc POE::Component::IRC::Projects
DESCRIPTION
POE::Component::IRC::Projects strives to document projects that are using POE::Component::IRC>. Projects can include subclasses, bot
frameworks, bots, etc. The only stipulation for inclusion is that the project utilises POE::Component::IRC>.
Inclusion to ( or inversely, exclusion from ) this list does not imply any sort of endorsement ( or disapproval ) of the said project.
BOT FRAMEWORKS ( CPAN )
An alphabetically ordered list of bot frameworks, that are available on CPAN.
Amethyst
Amethyst is a bot core capable of handling parsing and routing of messages between connections and brains. Amethyst can handle an
arbitrary number of connections of arbitrary types (given an appropriate module in Amethyst::Connection::*), routing these messages
fairly arbitrarily through multiple processing cores (brains, live in Amethyst::Brain::*), and responding to these messages on other
arbitrary connections.
Bot::BasicBot
Basic bot system designed to make it easy to do simple bots, optionally forking longer processes (like searches) concurrently in the
background.
Bot::Pluggable
This is a very small (but important) part of a pluggable IRC bot framework. It provides the developer with a simply framework for
writing Bot components as Perl modules.
Bot::Infobot
Bot::BasicBot::Pluggable based replacement for the venerable infobot.
IRC::Bot
A complete bot, similar to eggdrop using POE::Component::IRC. Allows access to all channel user management modes. Provides !seen
functions, a complete help system, logging, dcc chat interface, and it runs as a daemon process. IRC::Bot utilizes Cache::FileCache for
seen functions, and for session handling.
ThreatNet::Bot::AmmoBot
ThreatNet::Bot::AmmoBot is the basic foot soldier of the ThreatNet bot ecosystem, fetching ammunition and bringing it to the channel.
It connects to a single ThreatNet channel, and then tails one or more files scanning for threat messages while following the basic
channel rules.
EXTENSIONS ( CPAN )
POE::Component::IRC::Plugin::RSS::Headlines
A POE::Component::IRC plugin that provides RSS headline retrieval.
POE::Component::IRC::Plugin::URI::Find
A POE::Component::IRC plugin that finds URIs in channel traffic.
POE::Component::IRC::Plugin::POE::Knee
A POE::Component::IRC plugin that runs Acme::POE::Knee races.
POE::Component::IRC::Plugin::Blowfish
A POE::Component::IRC plugin that provides blowfish encryption.
POE::Component::IRC::Plugin::YouTube::MovieFindStore
A plugin for finding, resolving .FLV, and optionally storing YouTube URIs.
POE::Component::IRC::Object
A slightly simpler OO interface to PoCoIRC
POE::Component::IRC::Onjoin
This module implements a class that provides moved message and onjoin services as an IRC bot. Based on the configuration parameters
passed to it via its constructor it will connect to a channel on a server and immediately send everyone on that channel a message
privately. It will also send the same message to the channel itself publically at the specified interval. All users joining the channel
thereafter will also receive the message.
PROXIES
/ BOUNCERS ( CPAN )
App::Bondage
A featureful easy-to-use IRC bouncer.
perl v5.14.2 2011-12-07 POE::Component::IRC::Projects(3pm)