Search Results

Search: Posts Made By: karlp
6,778
Posted By karlp
Diff would compare line by line, correct? If...
Diff would compare line by line, correct?

If one file is shorter than the other by no more than a line, I've already gotten a false positive and a duplicate line.
6,778
Posted By karlp
Simple XML file comparison and merging
Okay, first of all, thanks to everyone who's helped me out before... I appreciate the opportunity to learn.

I have two iTunes XML files, and I simply want to compare the contents, then merge....
3,840
Posted By karlp
Thanks for the quick reply... This is in...
Thanks for the quick reply...

This is in fact a piece of a script for processing files associated with a particular application, and part of the script uses unzip to process files according to...
3,840
Posted By karlp
So, thanks, two questions... 1: The slashes...
So, thanks, two questions...

1: The slashes prior to the dollar sign in dir1 and dir2, are those there for a reason?
2: Will removing the quotes from dir2's use of variabledir cause the...
3,840
Posted By karlp
BASH Varible nesting and user input
Well, I think I've managed to take two different issues and conglomerate them into and embarrasing mess.


#!/bin/bash
# Set some variables
dir1=/path/that/isnt/variable/$variabledir/dir/...
7,768
Posted By karlp
The sample provided is the long list file, simply...
The sample provided is the long list file, simply cat'ed from a .db to a .txt.

Unfortunately the grep suggestion failed... perhaps I can cat the filelist from the directory into xargs and from...
7,768
Posted By karlp
Thanks! Contents of the file is just a list of...
Thanks! Contents of the file is just a list of files, one per line:


badfiles.txt:

file.stuff
file2.stuff
file3.stuff


One of the long lists also has semicolons at the end of the line,...
7,768
Posted By karlp
So, let's see if I can construct an example. ...
So, let's see if I can construct an example.

Long list 1 contains a list of files, so does long list 2. These filenames are being compared to shortlist, which is a list generated from a find...
7,768
Posted By karlp
I was not aware that compare allowed only output...
I was not aware that compare allowed only output of matches... Also, I'm afraid I'm not sure how I would iterate through an array.

My idea so far was to take the third array (shortlist) and...
7,768
Posted By karlp
Using Bash scripting to compare arrays looking for matches
I have two arrays I need to compare against a third, looking for matches, not differences. I think I'm going to have to convert the arrays to files and grep them, but I'm not too sure if there's a...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 08:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy