Posts by slayer • 174 points
3 posts
-
1
votes3
answers507
viewsA: Transform date format DD/MM/YY into MM/DD/YY into Shell Script
In bash, there is something called "Parameter Expansion" which consists of manipulating the arguments. Knowing this, I recommend that you avoid using sed and/or awk in pipelines. Because, because…
-
1
votes1
answer403
viewsA: How to 'Loop' in Multi-dimensional Array in Bash?
From what I understand, you want an array that stores information id and name. If it is... Creating bash array is simpler than you think. Example: #!/bin/bash array_( "nome1" "nome2" "nome3" )…
-
3
votes2
answers295
viewsA: In bash, what is the difference between a null string and an empty string?
Consider the following: var1= var2="" The variable var1 has no value, has its null value (null). A null value is exactly a "NOTHING"! Different from the variable value var2 that has an empty string.…