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

maven command line how to point to a specific settings.xml for a single command?

Is it possible to point to a specific settings file in order to override the default settings.xml being used by maven for a single command? Example: mvn clean install -Dparam # -> pass specific settings file path as param to override default “home/.m2/settings.xml” 2 Answers 2

How to find the mysql data directory from command line in windows

In linux I could find the mysql installation directory with the command which mysql. But I could not find any in windows. I tried echo %path% and it resulted many paths along with path to mysql bin. I wanted to find the mysql data directory from command line in windows for use in batch program. … Read more

How to start MySQL server from command line on Mac OS Lion?

I installed mySQL on my Mac. Beside starting the SQL server with mySQL.prefPane tool installed in System Preferences, I want to know the instructions to start from command-line. I do as follows: After su root I start the mySQL server by command-line, but it produces an error as below: sh-3.2# /usr/local/mysql/bin/mysqld 111028 16:57:43 [Warning] Setting … Read more

How to trigger XDebug profiler for a command line PHP script?

XDebug offers the configuration directive xdebug.profiler_enable_trigger that allows to activate profiling by passing the GET or POST parameter “XDEBUG_PROFILE” when calling a script via HTTP. This is handy if you don’t want profiling for ALL of your scripts but only for a few special cases without always changing your PHP configuration. Is there a way … 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