Wednesday, April 22, 2015

Unix commands - maven and file listing

Maven command to run java program

mvn exec:java -Dexec.mainClass="com.lochbridge.hadoop.NewCollectDriver" -Dexec.args="Sample.txt trips"  -Dlog4j.configuration=log4j.properties


Unix command to find non-zero files created today

find -maxdepth 1 -size +0 -mtime -1


List files details 

ls -al 
ls -al file1 file2 file3


Merge multiple files
cat file1 file2 file3 >ResultFile

No comments:

Post a Comment