User:Akannus: Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
read -p "Kataloogi nimi, mida soovite PATHi sisestada" PATHi | read -p "Kataloogi nimi, mida soovite PATHi sisestada" PATHi | ||
echo " " | echo " " | ||
export PATH= | export PATH=$PATHi:$PATH | ||
#Kirjutab PATH | #Kirjutab PATH failikausta ka sisestatud uue kataloogi | ||
var=" | |||
var="$PATHi" | |||
echo $var >> /etc/paths | echo $var >> /etc/paths | ||
</source> | </source> |
Latest revision as of 01:34, 17 May 2011
#!/bin/bash
#autor = Alfi Kannus
#Versioon 0.1
#Küsib kasutajalt kataloogi, mida luua ning loob, ning kirjutab ka PATH kausta uue PATHi
#Töötas Mac OS -is
#Küsib mis soovite kataloogi nimeks panna
read -p "Kataloogi nimi, mida soovite PATHi sisestada" PATHi
echo " "
export PATH=$PATHi:$PATH
#Kirjutab PATH failikausta ka sisestatud uue kataloogi
var="$PATHi"
echo $var >> /etc/paths