2009-12-19から1日間の記事一覧
#!/bin/sh #mklocatedb.sh #findコマンドを使ってlocateデータベースを作成する locatedb="/var/locate.db" if [ "$(whoami)" != "root" ]; then echo "Must be root to run this command." >&2 exit 1 fi find / -print > $locatedb exit 0 #!/bin/sh #loca…
#!/bin/sh #mklocatedb.sh #findコマンドを使ってlocateデータベースを作成する locatedb="/var/locate.db" if [ "$(whoami)" != "root" ]; then echo "Must be root to run this command." >&2 exit 1 fi find / -print > $locatedb exit 0 #!/bin/sh #loca…