Tuesday, November 17, 2009

perl regexp one liner to copy some images

oki have the images from one day on the camera card and i need to copy them
this works!

ls /mnt/usb/dcim/100ncd80/ -ltr |grep 2009-10-20|perl -pe 's/.*(dsc.*)/$1/'
lists the images i want
so
cd /mnt/usb/dcim/100ncd80/
then

ls -ltr |grep 2009-10-20|perl -pe 's/.*(dsc.*)/$1/'|xargs -I {} cp {} /home/debianuser/conferences/conf20091118

this works well!

and here is the flip images script to rotate the images

cat bin/flip_journal.pl
#!/usr/bin/perl -w
use strict;
my $angle=shift;
my $dir=shift;
if (!($angle && $dir)) {print"missing either the angle or the directory"; die;}
opendir (IN,$dir);
my @list;
@list=readdir (IN);
foreach (@list)
{
next if ($_ eq '.' || $_ eq '..');
system ("convert -rotate $angle $_ $_ ");
}

4 comments:

Gamepoly.NET said...

warrock hack,warrock hacks,war rock hack,war rock hacks,warrock vip hack,warrock premium hack,warrock level hack,warrock opk hack,warrock stamina hack,warrock yeni hack,warrock güncel hack,warrock çalışan hack,warrock d3d hack,warrock soruce hack,warrock gold premium hack,warrock dinar hack,warrock retail hack,warrock wall hack,wall hack,warrock gm hack,warrock vip al,warrock vip hack,gamepoly warrock hack,gamepoly warrock hacks,www.gamepoly.net warrocktr,warrock ticket göndermek,warrock ticket atma,warrock ticket nasıl atılır,warrock levellar,warrock rütbeleri,warrock kısayol komutları,warrock oyun taktikleri,warrock download,warrock,warrock sistem gereksinimleri,warrock,tr.warrock.net,tr.warrock.net,resmi warrock forumu,warrock forum,warrock hack forum,warrock hack team,wrhackteam,warrock hacker,warrock game hack,game hack,game hacks,gh,warrock vip source,warrock public hack,warrock semi hack

WARROCK FORUM : http://www.gamepoly.net/forum/war_rock-b13.0/

WARROCK HACK FORUM : http://www.gamepoly.net/forum/war_rock_hack-b31.0/

www.gamepoly.net

VIVI 情趣精品 said...

情趣商品,情趣精品,情趣用品,情趣味用品,情趣用品坊,情趣用品店,情趣用品網站,情趣用品專賣店,情人趣味,情色遊戲

情人趣味用品,情趣,情色,色情,色遊戲,一夜情,色情網站,情色自拍,情人趣味愛蜜莉,情人趣味用品液,情人趣味用品轉

情人趣味用品娃,情人趣味用品珠,情人趣味用品店,情人趣味用品控制,情人趣味用品轉珠,情去商品,情趣禮物,情人節

情趣用具,情趣網,情趣用性品,情趣性用品,情趣用品爽翻天,情趣爽翻天,情趣內衣,情趣椅,情趣貼圖,情趣睡衣,情色小說

VIVI 情趣精品 said...

飛機杯,按摩棒,自慰套,SM,吊帶襪,潤滑液,跳蛋,性感睡衣,充氣娃娃,角色扮演,G點,高潮,性感,威而柔,跳蛋情人趣味

跳蛋情人,跳蛋影片,跳蛋變頻,跳蛋調情,按摩情人趣味,按摩器,按摩椅,按摩半套,按摩全套,按摩精油,吊帶襪影片

自衛方法,自衛棒,自慰器專賣店,自衛器,自衛杯,自慰器,自慰杯,自慰棒,吊帶襪美女,潤滑情人趣味,潤滑油,潤滑劑

潤滑液用品,充氣情人趣味,充氣玩具,角色情人趣味,角色扮演遊戲,角色扮演服裝,震動情人趣味,震動保險套,震動器

逼真情人趣味,保險套,保險套情人趣味,性感內衣

VIVI 情趣精品 said...

情趣商品,情趣精品,情趣用品,情趣味用品,情趣用品坊,情趣用品店,情趣用品網站,情趣用品專賣店,情人趣味,情色遊戲

情人趣味用品,情趣,情色,色情,色遊戲,一夜情,色情網站,情色自拍,情人趣味愛蜜莉,情人趣味用品液,情人趣味用品轉

情人趣味用品娃,情人趣味用品珠,情人趣味用品店,情人趣味用品控制,情人趣味用品轉珠,情去商品,情趣禮物,情人節

情趣用具,情趣網,情趣用性品,情趣性用品,情趣用品爽翻天,情趣爽翻天,情趣內衣,情趣椅,情趣貼圖,情趣睡衣,情色小說