Splitting Files in Unix Systems 1. Introduction In this short tutorial, we’ll take a look at a few different ways we can split files in Unix systems. All of these commands were tested in Bash, but are platform-independent. 2. Using split One of the most common ways of splitting files… Continue Reading split-files

Java String.trim() The method trim() removes any whitespace at the beginning and at the end of a String. If the String contains only spaces, then the method returns an empty String. Available Signatures [source,java,gutter:,false] public String trim() Example [source,java,gutter:,true] @Test public void whenTrim_thenCorrect() { assertEquals(“foo”, ” foo “.trim()); }

Guide to Unix Swap 1. Introduction In this tutorial, we’ll introduce the Unix swap space, its advantages, and a few simple commands to manage it. 2. The Unix Swap Space Swap or paging space is basically a portion of the hard disk that the operating system can use as an… Continue Reading swap-space

Linux Commands – Repeat a Command n Times 1. Introduction Repeating a command is one of the most commonly used operations when working with Linux scripting. In this quick tutorial, we’ll present how to perform an operation n times using different approaches. 2. Using a for Loop Let’s start by defining a… Continue Reading repeat-command