投稿
Linuxをつかったバッチファイル名変更
- リンクを取得
- ×
- メール
- 他のアプリ
投稿者:
Unknown
-
久しぶりのLinuxについてのきじです。 Somethings are just really easy to do on linux. とこどき、大量の画像ファイル名を変更したいときがある。一個一個するのは大変だが、下記のコマンドをつかえば楽です。 This is just one way of renaming an entire batch of files with a one-liner. I use this to batch rename photos. For example, some NIKON digital cameras affix use DSCN0000.jpg , where 0000 is the index number of the photos. So if we want to change a bunch of files such as, DSCN0001.JPG DSCN0002.JPG DSCN0003.JPG DSCN0004.JPG to Sargassum0001.JPG Sargassum0002.JPG Sargassum0003.JPG Sargassum0004.JPG We can just do this: ls DSCN* | awk '{print "mv "$1" "$1}'| sed s/DSCN/Sargassum/2|sh ls DSCN* gets the directory listing and pipes it to, awk '{print "mv "$1" "$1}' , which prints out the command to execute, which is " mv ", with the ls 'ed files repeated twice, which is then piped to, sed s/DSCN/Sargasum/2 , which changes the 2nd occurance of DSCN to Sargassum and pipes ...
石垣島2011
- リンクを取得
- ×
- メール
- 他のアプリ
投稿者:
Unknown
-
石垣島はまだよかった。とくに、ここウミショウブ群落をやっとみつけた。 In comparison to the fieldwork at Iriomote, Ishigaki went well. At the least we found a large and healthy Enhalus acoroides meadow! ここでも、機材をつけて溶存酸素や光量子をはかった。 Here, we set up our equipment and went to work, collecting dissolved oxygen and light measurements. もちろんPAMでの測定もした(光合成化学反応系IIの活性を測っています)。 Here is one of the crew using a Diving PAM (this measures the "activity" of the photosystem II reaction center). ウミヘビもみたし、 We also saw a sea snake, K村くんはハリセンボンまでつかまえたが、 and Mr. K caught himeself a big porcupine fish. 80万もするCTD(あのオレンジいろ物体)をおとして、10分かけて必死にさがした。K堀君のおかげで、みつかった。ありがとう! However, he also dropped our $8000 mini-CTD (the orange thing in the photo below), and it took 10 minutes of frantic searching before Mr. K-hori found it. Good Job!