01-10-2017
A couple of comments:
- The error is still trapped (detected and reported), the message just happen not to be displayed on the terminal.
- Should a shell syntax error had existed in your command line, it would still have been displayed on the terminal. Redirections are performed after the command is parsed, syntax errors are detected during the parsing.
This User Gave Thanks to jlliagre For This Post:
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i need to get rid of lilo's splash screen.
i've heard that you can edit your /etc/lilo.conf and add this line:
<b>append="splash=0"</b>
anyway, i did that and i still have a splash screen. any idea why that didn't work, or what is another way to disable the splash screen?
okay,
-nydel (1 Reply)
Discussion started by: nydel
1 Replies
2. Programming
So basically what im trying to do is ...
Open file, read that file, than try to find ..
We or we and replace them with I, but not replace the cases where words contain We or we, such as Went, went, etc
a and replace them with the, but not replace the cases where words contain a, such as... (1 Reply)
Discussion started by: bconnor
1 Replies
3. Programming
Hey guys, first of all I'd like to say Hi to everyone. I am new here and this is my first post.
I have a question about some C stuff. I am in Computer Science and I have an assignment for a UNIX Applications course. It is really complicated, however.
We're using the C language for this and... (1 Reply)
Discussion started by: V4D3R
1 Replies
4. UNIX for Advanced & Expert Users
hi,
i need to clear data off a DOA backup drive.
i try this, but just get a file {} in . and no change on the backup drive.
bash shell
find /mnt/usbbackup -xdev -type f -exec echo `date` > {} \;
any ideas? thanks. :) (1 Reply)
Discussion started by: drewnichols
1 Replies
5. UNIX for Dummies Questions & Answers
Hi everyone
Just a couple of quick questions if I may.
Can I ask what is meant by "flavours"?? I've come across it many times in the forums and I'm guessing that it is a variery of either Linux or UNIX (I know nil about either) which has developed but not really got a clue.
... (1 Reply)
Discussion started by: Tiramisu
1 Replies
6. Shell Programming and Scripting
Example script:
find mydir -type f -exec echo {}>aaa \; -exec echo {}>bbb \;The two paths go the the bbb file, while there should be one of them on each file. How should I do it to get it working? (2 Replies)
Discussion started by: Tribe
2 Replies
LEARN ABOUT DEBIAN
text::context
Text::Context(3pm) User Contributed Perl Documentation Text::Context(3pm)
NAME
Text::Context - Handle highlighting search result context snippets
SYNOPSIS
use Text::Context;
my $snippet = Text::Context->new($text, @keywords);
$snippet->keywords("foo", "bar"); # In case you change your mind
print $snippet->as_html;
print $snippet->as_text;
DESCRIPTION
Given a piece of text and some search terms, produces an object which locates the search terms in the message, extracts a reasonable-length
string containing all the search terms, and optionally dumps the string out as HTML text with the search terms highlighted in bold.
new
Creates a new snippet object for holding and formatting context for search terms.
keywords
Accessor method to get/set keywords. As the context search is done case-insensitively, the keywords will be lower-cased.
paras
@paras = $self->paras($maxlen)
Return shortened paragraphs to fit together into a snippet of at most $maxlen characters.
as_text
Calculates a "representative" string which contains the given search terms. If there's lots and lots of context between the terms, it's
replaced with an ellipsis.
as_html([ start => "<some tag>", end => "<some end tag>" ])
Markup the snippet as a HTML string using the specified delimiters or with a default set of delimiters ("<span class="quoted">").
AUTHOR
Original author: Simon Cozens
Current maintainer: Tony Bowden
BUGS and QUERIES
Please direct all correspondence regarding this module to:
bug-Text-Context@rt.cpan.org
COPYRIGHT AND LICENSE
Copyright (C) 2002-2005 Kasei
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License; either version
2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
perl v5.10.1 2009-07-23 Text::Context(3pm)