19 Mayıs 2019 Pazar

diff komutu

- r seçeneği
Örnek
İki tane dizindeki farklı dosyaları bulmak için kullanılabilir. Şöyle yaparız
$ unzip -q hazelcast-enterprise-5.2.3.zip 
$ unzip -q hazelcast-enterprise-5.2.3-slim.zip 
$ diff -qr hazelcast-enterprise-5.2.3-slim hazelcast-enterprise-5.2.3
Only in hazelcast-enterprise-5.2.3: custom-lib
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-3-connector-common-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-3-connector-interface-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-avro-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-cdc-debezium-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-cdc-postgres-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-csv-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-elasticsearch-7-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-files-azure-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-files-gcs-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-files-s3-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-grpc-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-hadoop-all-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-kafka-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-kinesis-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-protobuf-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-python-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-jet-s3-5.2.3.jar
Only in hazelcast-enterprise-5.2.3/lib: hazelcast-mapstore-5.2.3.jar
Only in hazelcast-enterprise-5.2.3: management-center
--suppress-common-lines seçeneği
Şöyle yaparız.
diff "code1.js" "code2.js" --suppress-common-lines | tee outputFile

Hiç yorum yok:

Yorum Gönder