Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "Miesiac: "
- read miesiac
- echo "Dzien: "
- read dzien
- awk -v dz=$dzien '
- /'$miesiac'/ { printf("%s",$1)
- if(dz=="poniedzialek")
- {
- printf"%d\n",$2
- }
- if (dz=="wtorek")
- {
- printf"%d\n",$3
- }
- if (dz=="sroda")
- {
- printf"%d\n",$4
- }
- if (dz=="czwartek")
- {
- printf"%d\n",$5
- }
- if (dz=="piatek")
- {
- printf"%d\n",$6
- }
- if (dz=="sobota")
- {
- printf"%d\n",$7
- }
- if (dz=="niedziela")
- {
- printf"%d\n",$8
- }
- }' $1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement