Search Results

Search: Posts Made By: JuankyKong
2
782
Posted By agama
Using a while loop seems easiest: i= ...
Using a while loop seems easiest:


i=
while [[ -z $i ]] # while i is empty
do
printf "enter integer: "
read i
if [[ -z ${i//[0-9]/} ]] #true when i has all digits
...
2,506
Posted By felipe.vinturin
Please, can you give further details about what...
Please, can you give further details about what you need? Then, maybe one of us can help you...
1,392
Posted By agama
In a single command: today=$( date | tr...
In a single command:


today=$( date | tr "[a-z]" "[A-Z]" )
1,392
Posted By danmero
Using parameter expansion in bash 4.x ...
Using parameter expansion in bash 4.x
today=$(date)
today="${today^^}"
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 04:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy