Quantcast
Channel: Karlosp.net »» Bash
Browsing latest articles
Browse All 8 View Live

Drugi test

Malo testiram Scribe fireIn malo popravljam

View Article



SPO zagovori vaj

Preučite jezik za pregledovanje tekstnih datotek awk (oz. gawk - GNU awk) ter v njem napišite program, ki za vhod vzame neko HTML datoteko ter na standardni izhod izpiše seznam vseh povezav in slik, ki...

View Article

Napišite program v lupini, ki beleži dnevnik dosegljivosti računalnikov.

Napišite program v lupini, ki beleži dnevnik dosegljivosti računalnikov. Kot argument mu podamo datoteko, ki vsebuje spisek računalnikov, program pa naj vsakih pet minut preveri, če so dosegljivi. V...

View Article

Bash: Kill Proces

Napišite program v lupini, ki vsakih pet minut preveri, če se na sistemu pojavi nek proces in ga poskusa ubiti. Ime procesa podamo v ukazni vrstici. Primer uporabe: $ ubij netscape bo na računalniku...

View Article

Izračun fakultete (!)

#!/bin/bash if [ $# -eq 0 ] then echo Vnesi stevilo exit fi if [ $1 -eq 1 ] then echo 1 exit else i=2 tmp=1 while true do let tmp=$i*$tmp if [ $i -eq $1 ] then echo konec: $tmp exit fi let i=$i+1 done fi

View Article


Preveri geslo (min 8 znakov, vsaj ena števka in vsaj en [@#$%])

#!/bin/sh if [ $# -ne 1 ] then echo napaka pri uporabi programa exit fi dolzina=`echo -n $1 | wc -c` if [ $dolzina -lt 8 ] then echo Prekratko geslo exit fi if [ `echo $1 | grep [0-9]` ] then if [...

View Article

Fibonacci number: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89

#!/bin/bash if [ $# -ne 1 ] then echo 'Uporaba: sh fibo n' exit fi y0=0 y1=1 stevec=2 if [ $# -eq 1 -a $1 -gt 2 ] then echo $y0 echo $y1 while [ $stevec -le $1 ] do let "y3=$y0+$y1" echo $y3 y0=$y1...

View Article

Linux, bash find in files

find . -type f -exec grep -i "redeem reward" {} \; -print 2>/dev/null

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images

Pangarap Quotes

Pangarap Quotes

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC