$ cat /etc/fstab
UUID="UUID нужного раздела " / ext4 errors=remount-ro 0 1
UUID="UUID нужного раздела с нтфс" /media/dreams ntfs defaults,umask=007,gid=46 0
UUID="UUID раздела с виндой" /media/mustdieka ntfs defaults,umask=007,gid=46 0
UUID="UUID раздела подкачки" none swap sw
#!/bin/bash
phpurlencode() {
local hexchars="0123456789ABCDEF"
local string="${1}"
local strlen=${#string}
local encoded=""
for (( pos=0 ; pos<strlen ; pos++ )); do
c=${string:$pos:1}
if [ "$c" == ' ' ];then
encoded+='+'
elif ( [[ "$c" != '!' ]] && [ "$c" \< "0" ] && [[ "$c" != "-" ]] && [[ "$c" != "." ]] ) || ( [ "$c" \< 'A' ] && [ "$c" \> '9' ] ) || ( [ "$c" \> 'Z' ] && [ "$c" \< 'a' ] && [[ "$c" != '_' ]] ) || ( [ "$c" \> 'z' ] );then
hc=`printf '%X' "'$c"`
dc=`printf '%d' "'$c"`
encoded+='%'
f=$(( $dc >> 4 ))
s=$(( $dc & 15 ))
encoded+=${hexchars:$f:1}
encoded+=${hexchars:$s:1}
else
encoded+=$c
fi
done
echo "${encoded}" # You can either set a return variable (FASTER)
REPLY="${encoded}" #+or echo the result (EASIER)... or both... :p
}
echo $1
echo http://url/q?=$( phpurlencode "$1" )
<div id="headline1" style="display:none">
мой текст 1
</div>
<div id="headline2" style="display:none">
мой текст 2
</div>
<div id="headline3" style="display:none">
мой текст 3
</div>
...
<div id="box"><div>
...
<a href="#" onclick="setHeadline(); return false;">кнопка 1</a>
<a href="#" onclick="setHeadline(2); return false;">кнопка 2</a>
<a href="#" onclick="setHeadline(3); return false;">кнопка 3</a>
function setHeadline(num){
num = num || 1;
$("#box").html($('#headline'+num).html());
}