Blog: Java tutorial for beginners (Arpit Mandliya) |
241 blogs
updated: 50 min. ago
|
||
Using BASH_SOURCE Array To get the current script's directory in a Bash, use the BASH_SOURCE array with pwd command. [crayon-64242818d816852...
|
||
An array is a collection of data elements stored together under a single variable name. Unlike other programming languages, the array in Pow...
|
||
Using Set-Location Cmdlet Use the Set-Location cmdlet to change directory in PowerShell. [crayon-6424195a6ad300014 52702/] [crayon-6424195a6...
|
||
We can use different solutions to get the exit code of the last command in PowerShell, but before that, it is essential to know what does ex...
|
||
Using $RANDOM Variable Use the $RANDOM variable with cut command to generate random string in Bash. [crayon-6421e955c419e7174 60739/] [crayo...
|
||
Using Get-Content Cmdlet We can use multiple ways to split the specified text file into an array based on every new line. To practice those ...
|
||
Using Select-String with Regex to Find Patterns from File There are multiple scenarios where we can use Select-String with a regular express...
|
||
Print Object's Properties in Powershell In PowerShell, an object is a data structure that contains properties and methods. An object is esse...
|
||
Using Double Brackets Use the double brackets ([[...]]) to check if a string starts with another string in Bash. [[...]] is a keyword used t...
|
||
Find String in File in PowerShell Use the Select-String cmdlet to find string in file in PowerShell. Select-String cmdlet uses regular expre...
|
||
Made better & faster using https://www.yourkit.com/ Java Profiler