02-10-2014
To view/navigate in the file, I would suggest to use less, which has many all the vi commands outside those that change the file content.
To modify the file, I would use either sed or nawk.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi ,
I have a peculiar case, where my sed command is working on a file which contains lines of small length.
sed "s/XYZ:1/XYZ:3/g" abc.txt > xyz.txt
when abc.txt contains lines of small length(currently around 80 chars) , this sed command is working fine.
when abc.txt contains lines of... (3 Replies)
Discussion started by: thanuman
3 Replies
2. UNIX for Advanced & Expert Users
In a recent research experiment I was handling, I faced this task of managing huge amounts of data to the order of Terabytes and with the help of many people here, I managed to learn quite a lot of things in the whole process. I am sure that many people will keep facing these situations quite often... (2 Replies)
Discussion started by: Legend986
2 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Apologise if I am in the wrong forum,
I am trying to view all files one by one in the vi editor that contain a pattern.
This command work but not sure where to pipe it to use vi editor
find . -name "pattern" -print | xargs -ltr
tnx in advance (1 Reply)
Discussion started by: lingosa
1 Replies
4. UNIX for Dummies Questions & Answers
Hi there,
I am unable to find solution to the following question.
1) How do you copy 10 lines starting from the current and paste at the end of file?
2) How do you delete five lines starting from the current and four lines above?
3) What is the command to remove all space... (1 Reply)
Discussion started by: grc
1 Replies
5. Shell Programming and Scripting
Hello everyone!
I have 2 types of files in the following format:
1) *.fa
>1234
...some text...
>2345
...some text...
>3456
...some text...
.
.
.
.
2) *.info
>1234 (7 Replies)
Discussion started by: ad23
7 Replies
6. Solaris
Hello everyone. Need some help copying a filesystem. The situation is this: I have an oracle DB mounted on /u01 and need to copy it to /u02. /u01 is 500 Gb and /u02 is 300 Gb. The size used on /u01 is 187 Gb. This is running on solaris 9 and both filesystems are UFS.
I have tried to do it using:... (14 Replies)
Discussion started by: dragonov7
14 Replies
7. Programming
Hi All,
I am just curious, not programming anything of my own. I know there are libraries like gmp which does all such things. But I really need to know HOW they do all such things i.e. working with extremely large unimaginable numbers which are beyond the integer limit. They can do add,... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
8. Shell Programming and Scripting
Hi,
For a particular file i used Vi editor to view the content and i have to copy the same ,
But in the files if have 1000 lines and i have to copy the file contents from 700th to 900th lines
But while copying i'm dragging the mouse from top to bottom but i supposed to copy the lines... (8 Replies)
Discussion started by: thelakbe
8 Replies
9. Shell Programming and Scripting
Hi All,
I have a very large single record file.
abc;date||bcd;efg|......... pqr;stu||record_count;date
when i do wc -l on this file it gives me "0" records, coz of missing line feed.
my problem is there is an extra pipe that is coming at the end of this record
like... (6 Replies)
Discussion started by: Gurkamal83
6 Replies
10. Solaris
Hi All,
When i try to use vi editor to view content of a file i get error "Terminal too wide"
I try to use the following stty command though i dont know the purpose of it ( as it was said in some oracle forum )
but still the same error returns.
"stty columns 120"
Could you explain... (5 Replies)
Discussion started by: Maddy123
5 Replies
LEARN ABOUT DEBIAN
mojomojo::controller::page
MojoMojo::Controller::Page(3pm) User Contributed Perl Documentation MojoMojo::Controller::Page(3pm)
NAME
MojoMojo::Controller::Page - Page controller
SYNOPSIS
DESCRIPTION
This controller is the main juice of MojoMojo. It handles all the actions related to wiki pages. Actions are redispatched to this
controller based on MojoMojo's custom prepare_path method.
Every private action here expects to have a page path in args. They can be called with urls like "/page1/page2.action".
ACTIONS
view (.view)
This is probably the most common action in MojoMojo. A lot of the other actions redispatch to this one. It will prepare the stash for page
view, and set the template to "view.tt", unless another is already set.
It also takes an optional 'rev' parameter, in which case it will load the provided revision instead.
search (.search)
This action is called as ".search" on the current page when the user performs a search. The user can choose to search the entire site or a
subtree starting from the current page.
print
This action is the same as the "view" action, but with a printer-friendly template.
inline
Same as "view" action, but with a template that only outputs the barebones body of the page. There are no headers, footers, or navigation
bars. Useful for transclusion (see MojoMojo::Formatter::Include).
inline_tags (.inline_tags)
Tag list for the bottom of page views.
pages_viewable($c, $user, @pages)
Filters an array of pages, returning only those that the given user has permission to view.
list (.list)
All nodes in this namespace. Computes tags, all pages, backlinks, wanted and orphan pages.
subtree (.subtree)
Display all pages that are part of the subtree for the current node.
recent (.recent)
Recently changed pages in this namespace. Also computes the most used tags.
feeds (.feeds)
Overview of available feeds for this node.
rss (.rss)
RSS feed with headlines of recent nodes in this namespace.
atom (.atom)
Full content ATOM feed of recent nodes in this namespace.
rss_full (.rss_full)
Full content RSS feed of recent nodes in this namespace.
export (.export)
Page showing available export options.
suggest (.suggest)
"Page not found" page, suggesting alternatives, and allowing creation of the page. Root::auto detaches here for actions on nonexistent
pages (e.g. c<bogus.export>).
search_inline (.search/inline)
Search results embeddable in another page (for use with "suggest").
info (.info)
Meta information about the current page: revision list, content size, number of children and descendants, links to/from, attachments.
AUTHOR
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 2011-09-02 MojoMojo::Controller::Page(3pm)