[x^2 for x in lst]

Göra om sträng till versaler i bash

2014-04-16

Idag lärde jag mig att uttrycket ${a_string_variable^^} i bash gör om värdet av variabeln a_string_variable till upper case. I bash kan man göra mycket, men det blir inte alltid så tydligt...

Analogt gör uttrycket ${a_string_variable,,} i bash gör om värdet av variabeln a_string_variable till lower case.

Vill man bara gör om första bokstaven till upper respektive lower case använder man bara ^ resp , en gång istället för två.


Leave a reply

Your name as it will be displayed when the comment is posted on the page. Your email address will not be published.

Comments

-1 OR 3+360-360-1=0+0+0+1 -- 2025-nov-29 09:14 UTC
555
-1 OR 2+360-360-1=0+0+0+1 -- 2025-nov-29 09:14 UTC
555
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/ 2025-nov-29 09:14 UTC
555
-1 OR 3*2>(0+5+360-360) -- 2025-nov-29 09:14 UTC
555
-1' OR 3*2>(0+5+272-272) or 'FtJTE4NM'=' 2025-nov-29 09:14 UTC
555
1 2025-nov-29 09:14 UTC
555
-1' OR 3+798-798-1=0+0+0+1 -- 2025-nov-29 09:14 UTC
555
-1 OR 3+52-52-1=0+0+0+1 2025-nov-29 09:14 UTC
555
-1 OR 3*2>(0+5+52-52) 2025-nov-29 09:14 UTC
555
-1" OR 2+134-134-1=0+0+0+1 -- 2025-nov-29 09:14 UTC
555
-1' OR 2+272-272-1=0+0+0+1 or 'FtJTE4NM'=' 2025-nov-29 09:14 UTC
555
-1" OR 3*2>(0+5+134-134) -- 2025-nov-29 09:14 UTC
555
if(now()=sysdate(),sleep(15),0) 2025-nov-29 09:14 UTC
555
-1' OR 2+798-798-1=0+0+0+1 -- 2025-nov-29 09:14 UTC
555
-1 OR 3*2<(0+5+360-360) -- 2025-nov-29 09:14 UTC
555
1 2025-nov-29 09:14 UTC
555
-1 OR 2+52-52-1=0+0+0+1 2025-nov-29 09:14 UTC
555
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z 2025-nov-29 09:14 UTC
555
-1 OR 3*2<(0+5+52-52) 2025-nov-29 09:14 UTC
555
-1' OR 3*2<(0+5+272-272) or 'FtJTE4NM'=' 2025-nov-29 09:14 UTC
555
-1' OR 3+272-272-1=0+0+0+1 or 'FtJTE4NM'=' 2025-nov-29 09:14 UTC
555
-1" OR 3+134-134-1=0+0+0+1 -- 2025-nov-29 09:14 UTC
555
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z 2025-nov-29 09:14 UTC
555
-1' OR 3*2<(0+5+798-798) -- 2025-nov-29 09:14 UTC
555
1 2025-nov-29 09:14 UTC
555
1 2025-nov-29 09:15 UTC
555
-1)) OR 175=(SELECT 175 FROM PG_SLEEP(15))-- 2025-nov-29 09:15 UTC
555
1 2025-nov-29 09:15 UTC
-1' OR 3*2<(0+5+737-737) --
1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15) 2025-nov-29 09:15 UTC
555
1 2025-nov-29 09:15 UTC
-1 OR 2+201-201-1=0+0+0+1 --
1 2025-nov-29 09:15 UTC
-1" OR 3+84-84-1=0+0+0+1 --
1 2025-nov-29 09:15 UTC
-1' OR 3*2>(0+5+489-489) or 'bXtyuFa2'='
1 2025-nov-29 09:15 UTC
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
1 2025-nov-29 09:15 UTC
-1' OR 3*2<(0+5+489-489) or 'bXtyuFa2'='
1 2025-nov-29 09:15 UTC
-1 OR 3+201-201-1=0+0+0+1 --
1 2025-nov-29 09:15 UTC
if(now()=sysdate(),sleep(15),0)
1 2025-nov-29 09:15 UTC
-1 OR 3*2<(0+5+175-175)
1 2025-nov-29 09:15 UTC
-1 OR 3*2<(0+5+201-201) --
LM0IEX1E') OR 459=(SELECT 459 FROM PG_SLEEP(15))-- 2025-nov-29 09:15 UTC
555
1 2025-nov-29 09:15 UTC
-1' OR 3*2>(0+5+737-737) --
1'" 2025-nov-29 09:15 UTC
555
@@VXEQc 2025-nov-29 09:15 UTC
555
1 2025-nov-29 09:15 UTC
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
1 2025-nov-29 09:15 UTC
-1' OR 3+737-737-1=0+0+0+1 --
1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' 2025-nov-29 09:15 UTC
555
1 2025-nov-29 09:15 UTC
-1' OR 3+489-489-1=0+0+0+1 or 'bXtyuFa2'='
1 2025-nov-29 09:15 UTC
555
1 2025-nov-29 09:15 UTC
-1 OR 3*2>(0+5+175-175)
1 2025-nov-29 09:15 UTC
-1" OR 2+84-84-1=0+0+0+1 --
1 2025-nov-29 09:15 UTC
-1' OR 2+737-737-1=0+0+0+1 --
KSSScTMv' OR 904=(SELECT 904 FROM PG_SLEEP(15))-- 2025-nov-29 09:15 UTC
555
bnORNIrz')) OR 560=(SELECT 560 FROM PG_SLEEP(15))-- 2025-nov-29 09:15 UTC
555
1 2025-nov-29 09:15 UTC
-1' OR 2+489-489-1=0+0+0+1 or 'bXtyuFa2'='
1 2025-nov-29 09:15 UTC
-1 OR 3*2>(0+5+201-201) --
1 2025-nov-29 09:15 UTC
-1" OR 3*2>(0+5+84-84) --
-5) OR 643=(SELECT 643 FROM PG_SLEEP(15))-- 2025-nov-29 09:15 UTC
555
-5 OR 630=(SELECT 630 FROM PG_SLEEP(15))-- 2025-nov-29 09:15 UTC
555
1 2025-nov-29 09:15 UTC
-1 OR 3+175-175-1=0+0+0+1
1 2025-nov-29 09:15 UTC
-1 OR 2+175-175-1=0+0+0+1
1 2025-nov-29 09:15 UTC
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
1 2025-nov-29 09:15 UTC
-1" OR 3*2<(0+5+84-84) --
1 waitfor delay '0:0:15' -- 2025-nov-29 09:15 UTC
555
1 2025-nov-29 09:15 UTC
1 waitfor delay '0:0:15' --
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
5RAHXoPv') OR 733=(SELECT 733 FROM PG_SLEEP(15))--
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
@@itwZV
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
-5 OR 495=(SELECT 495 FROM PG_SLEEP(15))--
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
OkISBIn7' OR 908=(SELECT 908 FROM PG_SLEEP(15))--
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
-1)) OR 818=(SELECT 818 FROM PG_SLEEP(15))--
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
1 2025-nov-29 09:16 UTC
1'"
1 2025-nov-29 09:16 UTC
555
1 2025-nov-29 09:16 UTC
Lo7oBvcc')) OR 443=(SELECT 443 FROM PG_SLEEP(15))--
1 2025-nov-29 09:16 UTC
-5) OR 727=(SELECT 727 FROM PG_SLEEP(15))--