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

Before

Before

After the following Command

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

After

Advertisements
Apache · Cassandra

Apache Kafka – Simple Consumer [python]

 

Source Code :-

https://github.com/chriszones2000/Kafka-Python/blob/master/SimpleConsumer.py

Apache · Cassandra · Kafka

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

 

source :-

https://github.com/chriszones2000/Kafka-Java

Apache · Kafka

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

https://github.com/chriszones2000/Kafka-Java

Apache · Kafka

Apache Kafka – Consumer (Java Code)

Source :-

https://github.com/chriszones2000/Kafka-Java

Apache · Kafka

Apache Kafka – Producer (Java Code)