General :: Easy Way To Find Out Like Which Items Don't Match Between 2 Files Regardless Of Order
Mar 15, 2011
I have following 2 files
File1
10.1.1.1
10.1.2.1
10.1.3.1
File2
10.1.3.1
10.1.2.1
10.1.1.1
Both are reverse of each other. Now, basically if you see, the contents are same, but in different order. Is there any easy way in which i can find out like which items dont match between 2 files, regardless of order. Lets say i add 10.1.4.1 to File1. Now the result of such comparison should be only '10.1.4.1'. Currently if i am comparing both files using diff, it gives me all the lines.
I just started using the Ubuntu Netbook Remix (9.10 Karmic) a couple weeks ago. I've added my own and removed a few of the default icons in the simplified, menu-driven desktop interface. However, the icons are in the order in which they were added (particularly in the "Favourites" tab. How can I rearrange or sort these icons?
I've tried right-clicking the tab and desktop, but no sort option appears. I've tried dragging the icons to the desired spot in the window, but that doesn't work either. Is there a control panel in the "System" tab that will let me sort the icons, or is this not possible in the netbook remix?
I have been trying to configure a cyber cafe timer and I have so far tried Mkahawa and CCL. However the problem is following the instructions since most of them require you to be conversant with the Gnome commands..
I want to traverse a directory and get a list of files that contain a set of patterns. I assumed I could use grep for this, but I having trouble getting grep to only return files that match ALL patterns. Here's what I've come up with so far:
However, this gives me a list of files that match ANY of the patterns in the searchpatterns.txt file. I want to match ALL of the patterns. I've looked through the man page, but can't find anything that allows me to change the "OR" to "AND" for multiple patterns.
I am having a heck of a time trying to find directions on networking my two computers together in order to share files. I have two machines running Ubuntu 10.10 Desktop & Netbook remix.
They are both connected to my wireless router to connect to the internet.
If I execute the following command: cp -R /myfiles /mydestination
If myfiles contains several sub-directories and files, in what order will they be copied? For example, directories might be named 0123a, 9993c, myfolder, xfolder.
They are not copied in alphabetical order OR in date order OR in the order they appear when using a standard ls command as far as I can tell, so what actually does determine the order?
Edit: I am trying to determine the order that the cp command uses in order to determine how far along my copy command made it before it stopped. For example, I was hoping to be able to determine it copied 3 of the 4 directories successfully.
If transfer all files under a directory by rsync, what is the order that rsync determines to transfer the files one by one?At first it looked like rsync transfers files in alphabetical order, but later I found rsync skipped some files in the first sweep through the alphabetic order, and then went back to transfer files that were skipped in the first time and this time still in alphabetic order.
Our organization uses OpenSuSE servers (NFS/LDAP/SAMBA/more...) and are in the works migrating all the workstations for users to SuSE from Windows as well.
I like how in windows the mapped network drives are all listed in My Computer. OpenSuSE has a similar "My Computer" that lists current drives, and general PC info (in KDE, which is what we use in the office). Is there a way to list mounted drives in here, so that users can easily find the network drives? I'm open to alternatives to listing it in SuSE's sysinfo page, as long as it doesn't mean telling my old school windows users, "oh yeah, all your network drives are in /mnt/shares/...they wont have a CLUE what that means. It HAS to be easy for them to navigate to.
My attached image is just a screen shot of SuSE's "My Computer" so you can see where I would ideally like to put the shares.
I have a china phone which has mp3 player and unfortunately it reads the file names in its memory card in sequential order according where the file is saved. The file system is NTFS. cod
**Note: DDD song was last because I saved AAA to EEE songs then later added DDD song
Then suddenly i deleted BBB song and replaced it with FFF song code...
This is kinda lame. but the OS of the phone has no capability sorting the file according to filename in its built in mp3 player.
my question is how can I sort the files sector by sector(is my term right?) so the lame mp3 player would read the files finally in alphabetically sorted order. I Will plug my phone on my PC
I'm trying to find exact matches of some users in the /etc/passwd file using "grep -w", but it doesn't always work. For example, I have the following users:[URl].. So, let's say, I want to search for the user "stewart" (which doesn't exist)
Are there any quick and easy ways to find all of the dependencies required for a package to be installed, so that we dont have to spent a lot of time searching for each package or downloading them individually?
am trying to find a proper regex to match the two numbers in the following log entry.
Code: 15:08:16.142 INF Found 64468 15:08:16.142 ERR [Uniform test code=64469]
Basically the pattern I'm looking for will match the two different numbers spanned across two lines.Thought I need to use multi-line mode as follow but this doesn't match on [URL]...
So I've downloaded a few random things using the software center but I cant seem to find them? The main one I want to access is installed but cant I find/access it. I downloaded a application finder but that hasn't helped at all? So how / where can I find them? Do I use the Terminal?
I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.
I was playing around with the default panel that has the power icon (wrong lingo maybe) and the network/sound icons, etc.I deleted some items including the power icon and now for the life of me can't find it in the panel applets list in lubuntu.Is there a way to restore the default panel with the settings as when I first installed lubuntu.I also played with some spacings and other settings so would rather just get it back to normal/restore it vs add all the items back on and then play with the spacings again.
the VBO file that i want to burn into a dvd is around 7.9 gb. i want to know if it's possible to split them in order to burn the files into two diferent dvds.
I know how to search for normal files but can you let me know " How to search for 5 setuid files on the system. Also explain, for each file, why setuid mechanism is necessary for the command to function properly"
This might not be the right place to ask this question, but it's software so I'll try this before going to Audio-specific boards. I have a bunch of MP3s (some ogg) with crazy names in crazy directories. I would like to make sure the tags are correct (possibly by hand) and then rename them/move them so that they are in places like
<artist>/<directory>/<songname>.mp3.
So I imagine a magic program where I can edit tags and then push a magic button that makes directories and copies the files as above. Any ideas?
Code: $sql="SELECT table1.datetime, table1.user_id, table2.ip, FROM table1,table2 WHERE id='$id' AND (table1.id = table2.id AND table1.datetime = table2.datetime)";
In table2 the datetime fields are about 1 to 2 seconds off due to the source of the data, which I cannot change.
Is it possible via a query match table1.datetime & table2.datetime by HH:MM (ie. to the minute instead of to the second)?
I need to install some module which needs to be interated into OS's.
It asks me: "What is the location of the directory of C header files that match your running kernel? "
I know that I need kernel-devel package and I installed this yum install kernel-devel after that I have this /usr/src/kernels/2.6.32.26-175.fc12.i686/include/
Now when I run configuration it does not work
Does it mean that I need to update the kernel so that it matches to the kernel-devel module available in the net?
Where can I get a good copy of Ubuntu desktop edition. I have a cd of Ubuntu 10.04 but it will not load on my machine. This same cd did load at one time on the same computer.Every time I download ubuntu and check the MD5 files they do not match.
What is the best/easiest way to get ALL multimedia codecs both free nd non free so i can play all types of audio an video files? Like xvid quicktime, avi windows video files etc etc
I'm writing a script using ksh that diffs two dirs that contain about 30 files, and writing the results on a logfile. When files differ, it writes the difference with no problem, but I also need the script to write a message if no differences are found.