Learn how to split a String by whitespace characters, such as space, tab, or newline, using multiple approaches
Baeldung Author
Tapan Avasthi
Here's what I've written (so far):
Baeldung on Java
- All
- Data (4)
- Spring Boot (2)
- Spring (2)
- Docker (2)
- Testing (1)
- Reactive (1)
- Programming (1)
- NoSQL (1)
- Logging (1)
- Java (1)
Enable and Disable Endpoints at Runtime With Spring Boot
Filed under Spring Boot
Learn to enable and disable endpoints at runtime in a Spring Boot application using a few popular libraries, such as Spring Cloud, Spring Actuator, and Apache’s Commons Configuration.
Guide to Resilience4j With Spring Boot
Filed under Spring Boot
Learn how to use the Resilience4j library with a simple Spring Boot application.
Guide to the Storage Engine in Apache Cassandra
Dive into the internals of the storage engine used by Apache Cassandra.
How to Change Directory in Docker
Filed under Docker
Learn how to change the directory when building a Docker image or when running a container using an image.
Guide to Check if Apache Kafka Server Is Running
Filed under Data
Learn a few strategies to determine if the Kafka server is running
Guide to Undo a git rebase
Filed under Programming
Learn about two popular techniques to undo a git rebase operation
Reading Flux Into a Single InputStream Using Spring Reactive WebClient
Learn how to read Flux into a single InputStream
Load Testing Using Postman
Filed under Testing
Learn how to use Postman collections to perform simple load testing
List Active Brokers in a Kafka Cluster Using Shell Commands
Filed under Data
Explore few shell commands to get the list of active brokers in a running cluster
Monitor the Consumer Lag in Apache Kafka
Learn how to find the consumer lag on a Kafka topic.
Guide to Setting Up Apache Kafka Using Docker
Learn how to create single-node and multi-node setups of Apache Kafka in Docker
Baeldung on Linux
- All
- Scripting (3)
- File Editing (3)
- Web (2)
- File Searching (2)
- Processes (1)
- Files (1)
How to Find All Files Containing a Specific Text Pattern
Filed under File Searching
Learn how to find all files containing a specific text pattern using Linux utilities like find, grep, and a few other alternatives.
How to grep Without Leading Whitespaces
Filed under File Searching
Learn how to use sed, awk, and shell parameter expansion to grep without leading whitespace.
Guide to Removing Trailing Newline From grep Output
Filed under Files
Learn multiple strategies to match a pattern using the grep command and remove the trailing newline from the output.
Replacing Specific Line With a String Variable in Shell
Filed under File Editing, Scripting
Learn how to use sed and awk to replace specific lines with a string variable
Guide to Downloading URLs Listed in a File Using cURL
Filed under Web
Learn a few ways to use the curl and wget commands for downloading a set of files listed in a file
How to Split a Text File Based on a Regular Expression
Filed under File Editing
Learn how to split a text file based on a regular expression with the help of a few popular text-processing utilities.
How to Replace the Nth Occurrence of a String Using sed
Filed under File Editing
Learn how to replace the nth occurrence of a pattern by using a few advanced concepts in sed.
Output Document and Headers to Stdout Using Wget
Filed under Web
Learn a few ways in which we can output the document and headers to the stdout using the wget command
Guide to Getting DST-Safe Relative Dates
Filed under Scripting
Learn how to get relative dates in a DST-safe manner.
The Conditional Variable Assignment Operator in a Makefile
Filed under Scripting
Learn the basics of using variables in a Makefile, followed by using the ?= operator for a more advanced use case
Redirect Output of a Process to a File and Standard Streams
Filed under Processes
Learn few common strategies to redirect the output of a process to a file and standard streams such as stdout and stderr simultaneously
Baeldung on Kotlin
- All
- Kotlin Collections (3)
- Kotlin Strings (1)
- Kotlin Concurrency (1)
Guide to Base64 Encoding and Decoding Strings in Kotlin
Filed under Kotlin Strings
Learn the basics of Base64 encoding and explore a few popular ways to encode and decode strings to Base64 in Kotlin.
Guide to Comparing Arrays in Kotlin
Filed under Kotlin Collections
Learn how to do equality checks for arrays in Kotlin
Guide to Arrays in Kotlin
Filed under Kotlin Collections
Learn about Kotlin’s support for arrays
Guide to Kotlin’s yield Function
Filed under Kotlin Concurrency
Learn how the yield function works in Kotlin through examples with two use cases: building sequences and cooperative multitasking.
Remove Duplicate Values From an Array in Kotlin
Filed under Kotlin Collections
Learn how to remove duplicate values and entity objects from an array in Kotlin