I need to remove the entire file contents in file using the shell script.
Actually the grap -v command will create one more file and it occupy the space also.
I need to remove the entire file contents without creating new file using the shell scripting.
Please help me. (5 Replies)
Hi,
We have a non printable character "®" in our file , we want to remove this character, we tried tr -dc '' < oldfile> newfile but this command is removing all new line entries along with the non printable character and all the records are coming in one line(it is changing the format of the... (2 Replies)
I have file like below
Hi iam author <br>joseph</br> in france.
I live in my home <br></br> but no food.
I will play footbal <br></br> but i wont play cricket.
I will read all the books <br>all fiction stories</br> i hate horror stories.
I want output like below
Hi iam author... (3 Replies)
we all knew that .exe files are the executable file formats in windows....... Similarly, what are the executable file formats in solaris and linux ........
please tell me:D
Thanks in Advance. (2 Replies)
Hi All,
I am copying a file from windows to UNIX. After that copying it have the ctrl+M character in the file at the line break. But the file contains the data that also have ctrl+M. I want to re move the ctrl+M at the end of the line alone.
My file structure is XML and last line doesnt... (3 Replies)
Hi,
I want to check the incoming files whether the file is Mac file or dos/windows file in unix shell script.
Sometimes client is posting Mac file and sometimes it is dos file. Could you please help me how to determine/check whether the file is Mac or dos.
Help in advance
Thanks (4 Replies)
FYI,
I'm slowly removing a lot of the bold font-styles from titles of discussions, forum titles, etc
I'm not removing bold for the entire site because we do need bold from time to time, especially in posts and sometimes in other places.
However, the original forum style had way too much... (3 Replies)
Discussion started by: Neo
3 Replies
LEARN ABOUT DEBIAN
text::worddiff::ansicolor
Text::WordDiff::ANSIColor(3pm) User Contributed Perl Documentation Text::WordDiff::ANSIColor(3pm)Name
Text::WordDiff::ANSIColor - ANSI colored formatting for Text::WordDiff
Synopsis
use Text::WordDiff;
my $diff = word_diff 'file1.txt', 'file2.txt';
my $diff = word_diff $string1, $string2, { STYLE => 'ANSIColor' };
my $diff = word_diff *FH1, *FH2; \%options;
my $diff = word_diff &reader1, &reader2;
my $diff = word_diff @records1, @records2;
# May also mix input types:
my $diff = word_diff @records1, 'file_B.txt';
Description
This class subclasses Text::WordDiff::Base to provide a formatting class for Text::WordDiff that uses ANSI-standard terminal escape
sequences to highlight deleted and inserted text. This formatting class is the default class used by Text::WordDiff; see its documentation
for details on its interface. This class should never be used directly.
Text::WordDiff::ANSIColor formats word diffs for viewing in an ANSI-standard terminal session. The diff content is highlighted as follows:
Deletes
Deleted words will display in bold-faced red. The ANSI standard for strikethrough is also used, but since it is not supported by most
terminals, likely will not show up.
Inserts
Inserted words will display in bold-faced, underlined green.
All other content is simply returned.
See Also
Text::WordDiff
Text::WordDiff::HTML
Support
This module is stored in an open repository at the following address:
<https://svn.kineticode.com/Text-WordDiff/trunk/>
Patches against Text::WordDiff are welcome. Please send bug reports to <bug-text-worddiff@rt.cpan.org>.
Author
David Wheeler <david@kineticode.com>
Copyright and License
Copyright (c) 2005-2008 David Wheeler. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.0 2009-09-24 Text::WordDiff::ANSIColor(3pm)