Sponsored Content
Full Discussion: The Only Way To Fly !
The Lounge What is on Your Mind? The Only Way To Fly ! Post 302459549 by Neo on Tuesday 5th of October 2010 02:10:06 AM
Old 10-05-2010
The Only Way To Fly !

This is great!

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Rename files on the fly

Hi everyone, I am sort of new to shell scripting, I have a bunch of files that begin with 'blah' and I want to rename those files with something different (renamedFile1, renamedFile2, renamedFileN). I don't want to go through each file and rename them with the mv command. Could I just use a for... (4 Replies)
Discussion started by: kcor
4 Replies

2. UNIX for Dummies Questions & Answers

mv and compress on the fly

I want to move and compress a big export file. Like mv file_exp /filesystem/file_exp |compress The file system is too small to compress and move with 2 steps. What is the best command for me. I'm running solaris. :confused: (1 Reply)
Discussion started by: simquest
1 Replies

3. Shell Programming and Scripting

Grep logs on the fly

Hi, We use an application that is dumping logs to a file on disk. However, this is dumping very verbosely and there is no method of turning down the logging level. We need to remove certain contents from these before they are commited to disk. Has anybody got any ideas how I can do this... (3 Replies)
Discussion started by: harperonline
3 Replies

4. Solaris

Disable IPMP on the fly

Wats would be the best way to disable link based IPMP on the fly without loosing network connectivity ? (6 Replies)
Discussion started by: fugitive
6 Replies

5. Shell Programming and Scripting

Read Files on the Fly

Hi, I am creating files in a folder on the fly with arbritrary names but same extension (say, ".img"). How can I read each filename from the folder through a script. regards Angshuman (2 Replies)
Discussion started by: angshuman_ag
2 Replies

6. UNIX for Dummies Questions & Answers

awk - change variable on fly

Hello All, I have csv file, where one of fields is date (yyyy/mm/dd 00:00:00). Using awk I am trying to find all records with date newer/older than specific date. My idea was to compare unix timestamps of both dates: start=`date +%s -d "$DateStart"` awk -v start="$start" -v current=`date +%s... (34 Replies)
Discussion started by: haczyk
34 Replies

7. HP-UX

Compress dbexport on the fly

Hi, I have an old HPUX 10.20 server running Informix 7.23 I need to dump the database to get it off that hardware before it dies. Unfortunately there is insufficient local diskspace to do so. I have set up a linux box with sufficient disk onto which I can export the database. Having... (1 Reply)
Discussion started by: fella
1 Replies

8. AIX

Upgrading rootvg disks on the fly.

I'm looking for a way to upgrade disks containing my rootvg volume group on the fly without a reboot. Currently, rootvg contains 2x74gb drives in RAID 10. What I want to do is swap them out one-by-one with 146gb drives then expand the volume group. I've done this with a test system before, and... (12 Replies)
Discussion started by: acascianelli
12 Replies

9. OS X (Apple)

Creating An Executable On The Fly...

Hi all... Had an idea tonight which could really enhance shell scripting for me. Yes I am aware there could be difficulties but...... Creating a C script inside the shell script to do a task, (a simple text print to stdout in this example), compiling it on the fly, making sure it is... (4 Replies)
Discussion started by: wisecracker
4 Replies

10. Shell Programming and Scripting

Execute script on the fly

Hi all, I am calling a zsh script from batch file . This zsh just removes the trigger file in a particular directory.File name is passed as a parameter from the batch file Problem is this batch is called in multiple other batch files and sometimes system says file cant be used as it is used... (4 Replies)
Discussion started by: Hypesslearner
4 Replies
MojoMojo::Formatter(3pm)				User Contributed Perl Documentation				  MojoMojo::Formatter(3pm)

NAME
MojoMojo::Formatter - Base class for all formatters SYNOPSIS
package MojoMojo::Formatter::Simple; use parent qw/MojoMojo::Formatter/; sub format_content_order { 14 } # so that it runs after inclusion of obscene web sites # (MojoMojo::Formatter::Include runs at 6) sub format_content { my ($class, $content, $c) = @_; $$content =~ s/fuck/f**k/g; return $content; } DESCRIPTION
This is the class to inherit from if you want to write your own formatter. WRITING YOUR OWN FORMATTER
See the synopsis for a really simple formatter example. MojoMojo uses Module::Pluggable::Ordered to process all the formatter plugins. Just specify when you want to trigger your formatter by providing a format_content_order method which returns a number to specify when you want to run. The plugin order for the default plugins is currently as follows: 1 - MojoMojo::Formatter::Redirect - handles {{redirect /path}} 5 - MojoMojo::Formatter::Include - handles {{include <url>}} before all other plugins, so that transcluded sections from the same wiki get parsed for markup 10 - MojoMojo::Formatter::CPANHyperlink - handles {{cpan My::Module}} 10 - MojoMojo::Formatter::YouTube - handles {{youtube <url>}} 10 - MojoMojo::Formatter::Wiki - handles [[wikilinks]] 10 - MojoMojo::Formatter::Pod - handles {{pod}} ... {{end}} blocks 14 - MojoMojo::Formater::IRCLog - handles {{irc}} ... {{end}} blocks 14 - MojoMojo::Formatter::SyntaxHighlight - Performs syntax highlighting on code blocks 15 - Main formatter (MojoMojo::Formatter::Markdown or MojoMojo::Formatter::Textile) 16 - MojoMojo::Formatter::Defang - removes harmful HTML and XSS 91 - MojoMojo::Formatter::Comment - handles {{comments}}, inserts a comment box 95 - MojoMojo::Formatter::TOC - replaces {{toc}} with a table of contents Note that if your formatter expects HTML text, it should run after the main formatter. METHODS
format_content If you want your formatter to do something, you also need to override "format_content". It gets passed its classname, a scalar ref to the content, and the context object. It should return the scalar ref. main_format_content Override this method if your formatter is a primary one (equivalent to Markdown or Textile). It gets passed the same arguments as "format_content". Also make sure to update "Site settings" (/.admin). Note that the main formatter runs at 15. module_loaded Return true if a formatter module is loaded. gen_re gen_re(qr/irc/) Returns a regular expression for the given tag between matching double braces. SEE ALSO
MojoMojo, MojoMojo::Formatter::Textile, MojoMojo::Formatter::Markdown AUTHORS
Marcus Ramberg <mramberg@cpan.org> LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2010-05-23 MojoMojo::Formatter(3pm)
All times are GMT -4. The time now is 03:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy