How can I show lines in common (reverse diff)?

I have a series of text files for which I’d like to know the lines in common rather than the lines which are different between them. Command line Unix or Windows is fine. File foo: linux-vdso.so.1 => (0x00007fffccffe000) libvlc.so.2 => /usr/lib/libvlc.so.2 (0x00007f0dc4b0b000) libvlccore.so.0 => /usr/lib/libvlccore.so.0 (0x00007f0dc483f000) libc.so.6 => /lib/libc.so.6 (0x00007f0dc44cd000) File bar: libkdeui.so.5 => /usr/lib/libkdeui.so.5 … Read more

How to loop through files matching wildcard in batch file

I have a set of base filenames, for each name ‘f’ there are exactly two files, ‘f.in’ and ‘f.out’. I want to write a batch file (in Windows XP) which goes through all the filenames, for each one it should: Display the base name ‘f’ Perform an action on ‘f.in’ Perform another action on ‘f.out’ … Read more

Command Line Tool – Error – xcrun: error: unable to find utility “xcodebuild”, not a developer tool or in PATH

I am getting this error while building the SwiftJSON framework to the Some Xcode project through Carthage Dependency Manager. Sivaramaiahs-Mac-mini:GZipDemoApp vsoftMacmini5$ carthage update –platform iOS *** Fetching GzipSwift *** Fetching SwiftyJSON *** Checking out GzipSwift at “3.1.1” *** Downloading SwiftyJSON.framework binary at “3.1.3” *** xcodebuild output can be found in /var/folders/7m/y0r2mdhn0f16zz1nlt34ypzr0000gn/T/carthage-xcodebuild.apLXCc.log A shell task (/usr/bin/xcrun … Read more