Could someone please help me with the following.
I'm trying to figure out how to delete two words within a specific file using sed.
The two words are directory and named.
I have tried the following:
sed '//d' sedfile
sed '//d' sedfile
both of these options do not work.....
... (4 Replies)
Hi,
Could you please let me know, how to delete first 10 words from text files using vi?
10dw will delete it from current line, how to do it for all the lines from file?
Thanks (6 Replies)
I have an input text that looks like this (comes already sorted):
on Caturday 22 at 10:15, some event
on Caturday 22 at 10:15, some other event
on Caturday 22 at 21:30, even more events
on Funday 23 at 11:00, yet another event
I need to delete all the matching words between the lines, from... (2 Replies)
I'm hoping someone could help me out please :)
I have several .txt files with several hundred lines in each that look like this:
10241;</td><td>10241</td><td class="b">x2801;</td><td>2801</td><td>TEXT-1</td></tr>
10242;</td><td>10242</td><td... (4 Replies)
Hi,
I wanted to delete data between two words.
Input:
I read gihoihsahkjlk write goal hard read hsakdjhkh write work read hlkhlkhlkh write
Desired Output:
I write goal hard write work write
We have to replace the data that comes between 'read' and 'write' with... (3 Replies)
This is a Nagios situation.
So i have a list of servers in one file called Servers.txt
And in another file called hostgroups.cfg, i want to remove each and every one of the servers in the Servers.txt file.
The problem is, the script I wrote is having a problem removing the exact servers in... (5 Replies)
Hi all,
I want to make an script using sed that removes everything between 'begin' (including the line that has it) and 'end1' or 'end2', not removing this line.
Let me paste an 2 examples:
anything before
any string begin
few lines of content
end1
anything after
anything before
any... (4 Replies)
I have a word file that looks like:
pens
binder
spiral
user
I want to delete all the words without the letter /s/, so output looks like:
pens
spiral
user
I tried using sed:
sed '//d' infile.txt > out.txt (5 Replies)
hi, i have a fasta file like this:
>contig00003 length=363 numreads=45 gene=isogroup00001 status=it_thresh
GATTTTTTACCCTGGGAGTGAGGAGGACGAGGTTGAGGATGAAGAAAAGAGAAAGATGAAGAGGTTGAGGATGTT
GTAGTCGGCGGTGGAATTAGGGGGAGCCGGCGAGCCCAAGTATTTTGCAGAGGTGTCTTCATCATCCAAACAACA... (3 Replies)
WDIFF(1) User Commands WDIFF(1)NAME
wdiff - display word differences between text files
SYNOPSIS
wdiff [OPTION]... FILE1 FILE2
wdiff -d [OPTION]... [FILE]
DESCRIPTION
wdiff - Compares words in two files and report differences.
Mandatory arguments to long options are mandatory for short options too.
-C, --copyright
display copyright then exit
-1, --no-deleted
inhibit output of deleted words
-2, --no-inserted
inhibit output of inserted words
-3, --no-common
inhibit output of common words
-a, --auto-pager
automatically calls a pager
-d, --diff-input
use single unified diff as input
-h, --help
display this help then exit
-i, --ignore-case
fold character case while comparing
-l, --less-mode
variation of printer mode for "less"
-n, --avoid-wraps
do not extend fields through newlines
-p, --printer
overstrike as for printers
-s, --statistics
say how many words deleted, inserted etc.
-t, --terminal
use termcap as for terminal displays
-v, --version
display program version then exit
-w, --start-delete=STRING
string to mark beginning of delete region
-x, --end-delete=STRING
string to mark end of delete region
-y, --start-insert=STRING
string to mark beginning of insert region
-z, --end-insert=STRING
string to mark end of insert region
COMPATIBILITY
Some options that used to provide some unique functionality are no longer recommended, but still recognized for the sake of backwards com-
patibility.
-K, --no-init-term
Now synonymous to --terminal, which never initializes the terminal.
AUTHOR
Written by Franc,ois Pinard <pinard@iro.umontreal.ca>.
REPORTING BUGS
Report bugs to <wdiff-bugs@gnu.org>.
COPYRIGHT
Copyright (C) 1992, 1997, 1998, 1999, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
The full documentation for wdiff is maintained as a Texinfo manual. If the info and wdiff programs are properly installed at your site,
the command
info wdiff
should give you access to the complete manual.
wdiff 1.1.2 May 2012 WDIFF(1)