Jump to content
em

Linux shell

Recommended Posts

Posted

Afisati numarul 196 in consola fara a folosi cifre in comanda.


$ echo [b]magicstring[/b]
196

Nu fiti gay. Nu chemati alte scripturi. Cea mai scurta comanda sa castige :-)

Posted

Pai, fa asa. Pune un intreg while intr-o subcomanda in acel echo. Dar cum compari cu 196 daca nu ai voie sa il scrii? Si nici nu va fi prea scurta.

Posted (edited)


marian@pluto:~$ wtf
196

=)))

// edit: a, nu ai voie sa-l scrii, hahaha

De ce ? Pentru ca rst


marian@pluto:~$ rst
196

Cum de afisaza ?


marian@pluto:~$ function rst() { echo "`echo MTk2Cg== |base64 --decode`"; };
marian@pluto:~$ rst
196

erau si alte metode, cred ca mai simple :)

Edited by aelius
Posted

grep -o "a" <<<"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" | wc -l

  • Active Members
Posted (edited)


bc=$(printf "%d" "'b")
echo $((bc+bc))

codu ascii lu b inmultit cu 2

//cu 2 caractere mai putin


b=$(printf "%d" "'b")
echo $((b+)

Edited by danyweb09

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...