08-15-2014
Quote:
Originally Posted by
Don Cragun
Is this a homework assignment?
NOPE
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies
2. Shell Programming and Scripting
Hi Folks !!!!!!!!!!!!!!!!!!!
My Requirement is.............
i have a input file:
501,501.chan
502,502.anand
503,503.biji
504,504.raja
505,505.chan
506,506.anand
507,507.chan
and my o/p should be
chan->3
i.e. the word which occurs maximum number of times in a file should be... (5 Replies)
Discussion started by: aajan
5 Replies
3. UNIX for Dummies Questions & Answers
Hi I have a text file like this name today.txt
the request has been accepted
the scan is successful at following time
there are no invalid packages
5169378 : map : Permission Denied
the request has been accepted
Now what i want do is
I want to search the today.txt file and
if i... (1 Reply)
Discussion started by: gsusarla
1 Replies
4. Shell Programming and Scripting
I've been looking on the internet, and haven't found anything simple enough to use in my code. All I want to do is count how many times "-" occurs in a string of characters (as a package name). It seems it should be very simple, and shouldn't require more than one line to accomplish.
And this is... (2 Replies)
Discussion started by: Shingoshi
2 Replies
5. Shell Programming and Scripting
Hi folks,
have a look into the attachment, i am not familiar with unix, can you please help me in this regard.
thanks in advance, :)
regards,
Geeko (4 Replies)
Discussion started by: geeko
4 Replies
6. UNIX for Dummies Questions & Answers
I have a File with the below contents
File1
I have no prior experience in unix. I have just started to work in unix.
My experience in unix is 0. My Total It exp is 3 yrs.
I need to replace the first word in each line with the last word for example
unix have no prior experience in... (2 Replies)
Discussion started by: kri_swami
2 Replies
7. Shell Programming and Scripting
i have a file in this pattern
MATCH1 word1 IMAGE word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH1 word1 IMAGE word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1... (7 Replies)
Discussion started by: bangaram
7 Replies
8. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
9. Shell Programming and Scripting
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Discussion started by: Kingcobra
6 Replies
10. UNIX for Beginners Questions & Answers
Hi there I am trying to figure out and understand what the syntax would be to egrep lines that have a word occur twice in a row. the two words obviously should have a space between them and also it has to be case sensitive which I believe grep is by deffault. the closest I have come is...
grep... (7 Replies)
Discussion started by: spo_2138
7 Replies
LEARN ABOUT DEBIAN
docdiff
DOCDIFF(1) General Commands Manual DOCDIFF(1)
NAME
docdiff -- character/word-oriented diff
SYNOPSIS
docdiff [options] file1 file2
DESCRIPTION
This manual page documents briefly the docdiff commands.
This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu-
mentation in the HTML format; see below.
docdiff is a program that compares two files and shows the difference. It can compare files word by word, char by char, or line by line.
It has several output formats such as HTML/XHTML, tty, Manued, or user-defined markup.
It supports several encodings and end-of-line characters, including ASCII, UTF-8, EUC-JP, Shift_JIS, CR, LF, and CRLF.
OPTIONS
--resolution=RESOLUTION
specify resolution (granularity) line|word|char (default is word)
--line set resolution to line
--word set resolution to word
--char set resolution to char
--encoding=ENCODING
specify character encoding ASCII|EUC-JP|Shift_JIS|UTF-8|auto (default is auto)
--ascii same as --encoding=ASCII
--eucjp same as --encoding=EUC-JP
--sjis same as --encoding=Shift_JIS
--utf8 same as --encoding=UTF-8
--eol=EOL specify end-of-line character CR|LF|CRLF|auto (default is auto)
--cr same as --eol=CR
--lf same as --eol=LF
--crlf same as --eol=CRLF
--format=FORMAT
specify output format tty|manued|html|wdiff|user (default is html; user tags have to be described in config file)
--tty same as --format=tty
--manued same as --format=manued
--html same as --format=html
--wdiff same as --format=wdiff
--digest digest output, do not show all
--cache use file cache
--no-config-file
do not read config files
--verbose run verbosely
--help show usage
--version show version
--license show license
--author show author(s)
SEE ALSO
/usr/share/doc/docdiff/readme.html.
AUTHOR
This manual page was written by akira yamada akira@debian.org for the Debian system (but may be used by others).
DOCDIFF(1)