General :: Show Only Unique Words Between Two Files?

Feb 23, 2011

Quote:File1:
Hi, My name is John smith
Quote:
File2:
Hi, My name is smith

I want to show only the different or unique word between the two files (John)i was trying to get it with diff, comm, sort, uniq, grep, awk, sed

View 5 Replies


ADVERTISEMENT

General :: Finding Words In Files?

Apr 23, 2010

I am looking for this `struct messages_sdd_t` and I need to search through a lot of *.c files to find it.However, I can't seen to find a match as I want to exclude all the words 'struct' and 'messages_sdd_t'. As I want to search on this only 'struct messages_sdd_t' The reason for this is, as struct is used many times and I keep getting pages or search results.The directory I am searching in, has another directories so it will have to search recursively.I have been doing this without success:Code: find . -type f -name '*.c' | xargs grep 'struct messages_sdd_t'and thisCode: find . -type f -name '*.c' | xargs egrep -w 'struct|messages_sdd_t'

View 3 Replies View Related

OpenSUSE :: Gtranslator Doesn't Show The Words

Jun 29, 2011

I use gtranslator to translate po files. Gtranslator worked fine on 11.3 but when I installed 11.4 it crashed. I opened a Bug report here. Although I followed instructions, I couldn't solve it. Now I use Gnome 3. I installed gtranslator from the page where it says about Gnome 3. Now my gtranslator is 2.90. Now when I open a file, it returns the following image The numbers you see below are the words. I don't see a thing. I can move to next word but I still cannot see anything.

View 1 Replies View Related

General :: Find Words 'struct' And 'messages_sdd_t' In Many Files

Apr 23, 2010

I am looking for this struct messages_sdd_t and I need to search through a lot of *.c files to find it. However, I can't seen to find a match as I want to exclude all the words 'struct' and 'messages_sdd_t'. As I want to search on this only 'struct messages_sdd_t' The reason for this is, as struct is used many times and I keep getting pages or search results. I have been doing this without success:

find . -type f -name '*.c' | xargs grep 'struct messages_sdd_t'

and this

find . -type f -name '*.c' | xargs egrep -w 'struct|messages_sdd_t'

View 2 Replies View Related

General :: Searching Files For Specific Words Or Phrases

Jan 31, 2011

I have word like initialize_my_var:in sample.php and I included three library files, take it as a.php, b.php, c.php ,I really don't know where my label(initialize_my_var:)definition is present in my library files, is it possible with a pattern matching string to find which library file really have the exact term "initialize_my_var:" , I'm really looking for an exact pattern match.

View 1 Replies View Related

Ubuntu :: Open Multiple Unique PDF Files In One Applicaiton

Jan 14, 2010

I read a lot of PDF documents using the default Document Viewer and I am wondering whether there is an application or a hack to have several PDF files concurrently open in one application (maybe like tabs in a browser?) since switching between one application to a specific PDF always takes time.(Especially with more than 4 PDF files concurrently running.)

View 5 Replies View Related

General :: Why Does `du` Not Show Results For All Files

May 22, 2011

I (for curiosity's sake) am running du -a inside /usr/lib/git-core and it does not show results for all the files in that directory. Why does it leave out an arbitrary set of files?this is what cd /usr/lib/git-core; du -a returns:

4 ./git-merge-resolve
972 ./git-config
12 ./git-show-index

[code]....

View 1 Replies View Related

General :: Show Only Missing Files?

Oct 6, 2010

I have a question on using diff. I have two files that contain directory/file listings: d11.lis and d11.lis from a previous day. I am not interested in files that changed, or were added, I just want to see a list of files that are missing on day two.

View 5 Replies View Related

General :: Get Unique Host Id Of Machine C/c++?

Feb 5, 2011

I am looking for c/c++ code (no third party lib dependency) to get the physical address of ethernet card on mother board.Most of them suggests to use the linux commands and process the output. For example "/sbin/ifconfig eth0".The problem with above command is that when you run this on a linux variant which is running using VirtualBox on windows host, it's not returning the correct mac address. In this case the correct mac address is the one set for individual virtual machine."/sbin/ifconfig eth0" works fine when linux variant is installed normally.There is another case when linux variant is installed normally and if you install virtualization apps such as VirtualBox or VmPlayer, they create a virtual adepter for their own use. In that case running "/sbin/ifconfig" returns all the adepters. (physical and virtual)

View 1 Replies View Related

General :: Limit The Output To Show Only First 2 Files?

Mar 30, 2011

Let's say I have a command

ls -Bgclt /somwhere/in/the/past

How do I limit the output to show me only first 2 files? (except for having only 2 files in that directory)

View 2 Replies View Related

General :: No Files On The Disk But 'df -h' Show It's Full?

Apr 21, 2010

Code:
server:/home/mal # cd /backup/
server:/backup # du -hc *
17G export
4.0K lost+found
20M rman
8.0K sqlnet.log
4.0K test.sh

[Code]...

View 7 Replies View Related

General :: Create A Unique Zip With Only Public Subdirectory?

Apr 15, 2010

I've a lot of websites (100+ directories) I want to create a unique zip with only public subdirectory.

My structure now is like:

- Site 1
--- app
--- tmp
--- log
--- public

[Code]...

View 4 Replies View Related

General :: Show The Output Of Several Vi Files In A Single File?

Jan 3, 2011

i have 10 vi files . these files contain some system related information. i need to combine the output of all these files into a single file. the final file should contain contents of all these 10 files and the output should be in a tabular format.

is there any command in vi that i can use to create a table ?

View 9 Replies View Related

General :: Copied Files In Nfs Does Not Show The Right Time-stamp?

Mar 3, 2011

I have two systems running on linux. system one is running with RHEL 5.4/X86_64 hardware, system two is running with RHEL 5.3/i686 hardware. One filesystem is shared from system two and mounted as NFS on system one. Now when i do a copy from local filesystem to the NFS share from system one,it shows as follows

Quote:

-rw-r--r-- 1 xkinved rbak1 30 Mar 3 2011 king

But if i do copy with -p option then it shows right time stamp. Both machines are running with slight(minutes) different in time. Does this could be cause for this problem? The problem is happening while i do FTP from some other machines too.

View 3 Replies View Related

General :: Filter Out Unique Results From Grep Output?

Feb 21, 2010

In linux, I can grep a string from a file using grep mySearchString myFile.txt.
How can I only get the result which are unique?

View 1 Replies View Related

General :: Creating Unique Users Accounts Using Count?

Mar 16, 2011

I am trying to create users accounts reading from a file. I can get it to show if the user already exists but I want it to instead of not creating the user account to create e.g. Scott1 etc.The code i have so far is :

#!/bin/bash
while read line
do

[code]...

View 4 Replies View Related

General :: Grep Command - Show The Files But Not The Line Count

Oct 31, 2010

This has to also show the line count. I can get it to show the files but not the line count. What is the single command used to identify only the matching count of all lines within files under the /etc directory that contain the word „HOST? List only the files with matches and suppress any error messages.

View 4 Replies View Related

General :: Deleting First Line With Unique String Then All Subsequent Lines Thereafter?

Jan 20, 2011

I am doing molecular dynamics where I have to edit files. I have looked at tutorials for grep and sed but can't find my solution. The files produced in my simulations look something like this:

ATOM 1825 NE2 GLN 112 113.646 27.895 14.456
ATOM 1826 HE21 GLN 112 114.020 26.957 14.490
ATOM 1827 HE22 GLN 112 112.649 28.039 14.388

[code]...

View 5 Replies View Related

General :: Find Unique Extensions Or Formats In Deep Folder Structure

Jul 11, 2011

I have a deep folder structure on my RHEL 5.x file system which is supposed to have only word(*.doc, *.docx) or pdf(*.pdf) files. But I want to check if there are files with any other extensions which exist. Is that possible?

View 2 Replies View Related

General :: Grub Mod Files Show As Music File Type For Mint 8 Gnome

Jan 1, 2010

In the /boot/grub/ all the grub mod files show as music file type for Linux Mint 8. So is it really needed to correct this, and how to change this file type from some music application to the grub module file type association?

View 5 Replies View Related

Programming :: HUGE Files - Compare A List Of Patterns From One File And Grep Them Against Another File And Print Out Only The Unique Patterns?

Aug 13, 2010

I am trying to compare a list of patterns from one file and grep them against another file and print out only the unique patterns. Unfortunately these files are so large that they have yet to run to completion. Here's the command that I used:

Code: grep -L -f file_one.txt file_two.txt > output.output Here's some example data:

Code:
>FQ4HLCS01BMR4N
>FQ4HLCS01BZNV6
>FQ4HLCS01B40PB
>FQ4HLCS01BT43K
>FQ4HLCS01CB736
>FQ4HLCS01BU3UM
>FQ4HLCS01BBIFQ

how to increase efficiency or use another command?

View 14 Replies View Related

Ubuntu :: Unity Files And Folders Search Doesn't Show 'old' Files?

Jul 20, 2011

I have noticed that the files and folders search in Unity, only shows up those files which have been amended (or possibly just opened) since the install.

i was wondering if there was a way i could have the search index (or something vaguely equivalent) all the files on my machine. This is especially important given that i reinstall the OS every six months on a new distribution cycle, copying all my old files across.

Without being able to see my old files the search is pretty much reduced to a recent history search.

View 3 Replies View Related

Ubuntu :: Show Date And Size Of Files During Files Replacement?

Jan 16, 2011

I am newer to Linux ( using Ubuntu 10.04) : I have noticed that during replacement of a file , no date and size of the new and old files are shown in the dialogue box so how to show that ( like the one in windows)

I know that it is easy question , but i really don't know how to do that , by the way I have checked folder preferences and system --> preferences but i did not find something for that

View 9 Replies View Related

General :: GREP On Words With 2 Or More Z's?

Dec 21, 2010

I need to grep a dictionary file.Only the words that contain 2 or more z's and only 1 b needs to be listed.

View 1 Replies View Related

General :: Add Quotes Between Words In A Cvs File?

Mar 8, 2010

I exported a spreadsheet file into cvs format.

The cvs file is formatted this way

field1,field2,field3,..etc

I want it to be in a Quote delimited format like so

"field1","field2","field3",..etc

View 2 Replies View Related

General :: Count Lines And Words?

Feb 15, 2010

How can I display the no. of lines, words and characters for each file in current directory and in sub directory.

wc . * shows errornous result as there are some executable files in that directory.

View 2 Replies View Related

General :: Vim Replace All The Same Words In A Certain Line?

Dec 2, 2010

15 for(i = 0; i < N; i++) I want to replace "i" with "test" in the line above,whose line number is 15. When I tried this command :15s/i/test/ Line 15 turned to be this: for(test = 0; i < N; i++) It only replace the first "i",but I want to change all "i" in line 15.

View 3 Replies View Related

General :: Grep 2 Words At The Same Time?

Sep 9, 2010

I want to grep any line with "john" or "jack". How to do that? I tried

grep john | grep jack
but it didn't work

View 2 Replies View Related

General :: Searching Words With Space?

May 26, 2011

I want to search lines with these stings with one or more spaces..

e.g

Code:
a b
a b
a b
a b

How will I achieve this by egrep ?

View 14 Replies View Related

General :: Evolution Does Not Show Content Of Inbox Or Sent But Does Show Other Folders

Apr 28, 2011

I configured it to use IMAP to access our exchange 2010 server front end on a LAN connection. Our webmail connection is segregated behind Forefront, so it was not connecting/authing that way. Even though smartphones have no problem. (sidenote, is there an activesync linux mail client ?)

I have many root folders and several folders underneath my inbox. total mailsize in inbox is 3.5 GB without subfolders. The sent is likewise as large. And is likewise empty.

Things I checked already:
View is all
Folder subscription is on and local copy is on

More info:
Thunderbird worky fine.
But thunderbird is missing calender
Tried adding lightening, but it won't add into thunderbird.
Will try finding a diff add on, or if anyone knows how to get lightening into thunderbird 3.1.8 on ubuntu 10 that would be great as well.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved