Redhat / CEntOS / Oracle Linux · Tips and Tricks

How to Delete all files except a Pattern in Unix

Good Morning To All My TECH Ghettos,

Today ima show ya’ll a fuckin command to delete all files except a pattern,

ya’ll can use it in a script or even commandline ……. Life gets easy as Fuck !!!!!!!!

find . -type f ! -name ‘<pattern>’ -delete

A Live Example



After the following Command

find . -type f ! -name ‘*.gz’ -delete


Apache · Cassandra

Apache Kafka – Simple Consumer [python]


Source Code :-

Apache · Cassandra · Kafka

Apache Kafka / Cassandra – Input CSV , Publish to Topic, Consume CSV and Insert into DB


source :-

Apache · Kafka

Apache Kafka – Fetch Query result from Cassandra DB and Publish to Topic

Apache · Kafka

Apache Kafka – Consumer (Java Code)

Source :-

Apache · Kafka

Apache Kafka – Producer (Java Code)