| スクリプト |
#!/bin/sh ls $1 $2 | nkf |
| 使用例 |
toshi@samba:~/j-file$ jls -i 4702213 test1.txt 4227112 新規テキスト ドキュメント.txt 4227116 日本語.txt toshi@samba:~/j-file$ |
| スクリプト |
#!/bin/sh
find -inum $1 -exec mv '{}' $2 \;
|
| 使用方法 |
|
まず"jls -i"としてファイルのi-node番号を調べます。 次に"jmv [i-node番号] 新ファイル名"とします。 |
toshi@samba:~/j-file$ jls -i 4702213 test1.txt 4227112 新規テキスト ドキュメント.txt 4227116 日本語.txt toshi@samba:~/j-file$ jmv 4227116 nihongo.txt toshi@samba:~/j-file$ jls -i 4227116 nihongo.txt 4702213 test1.txt 4227112 新規テキスト ドキュメント.txt toshi@samba:~/j-file$ |
| スクリプト |
#!/bin/sh
echo '#!/bin/sh' > ./jcd.tmp
find -inum $1 -exec echo cd '{}' >> ./jcd.tmp \;
chmod 755 ./jcd.tmp
source jcd.tmp
|
| 使用方法 |
|
まず"jls -i"としてディレクトリのi-node番号を調べます。 次に". jcd [i-node番号]"とします。("."と"jcd"の間にスペースを空ける) |
toshi@samba:~/j-file$ jls -i 4227295 jcd.tmp 4309031 新しいフォルダ 4309030 日本語フォルダ toshi@samba:~/j-file$ . jcd 4309031 toshi@samba:~/j-file/V帰tH ←文字化けしている _$ pwd | nkf ←カレントディレクトリを日本語で表示 /home/toshi/j-file/新しいフォルダ |
御意見御感想等ありましたらtoshi's BBSまでどうぞ。
最終更新日:
2009 Jan 16