hns - 日記自動生成システム - Version 2.19.9

先月 2005年03月 来月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2005年03月05日() 旧暦 [n年日記] [更新:"2005/03/05 13:23:50"]

#1 [NetBSD][pkgsrc][bulk-build] infinite loop at textproc/p5-Text-WikiFormat

2005/03/05 03:58:09  4016/5380=74.6% textproc/p5-Text-WikiFormat @ powerpc> 
powerpc> Select your continent (or several nearby continents) [] 
powerpc> Sorry! since you don't have any existing picks, you must make a
powerpc> geographic seliFormat @ powerpc> 
powerpc> (1) Africa
powerpc> (2) Asia
powerpc> (3) Central America
powerpc> (4) Europe
powerpc> (5) North America
powerpc> (6) Oceania
powerpc> (7) South America

21GB log already ?:

ttyp5:root@mini 8:06:22/050305(/export/pkgsrc)# ls -l /export/bulk-build-20050228-0032
-rw-r--r-- 1 root wheel 21152897644 Mar 5 08:03 /export/bulk-build-20050228-0032
21,152,897,644 bytes

#2 [Emacs] regexp

次の単語の順を入替える(実際には < > の前後には空白はない)
<string> Libro di Class Unita 15-b</string>
<string>Unita 15-b Libro di Class </string>
M-C-%
Quesy replace regexp: >(Libro di Class) (.*)<
with: \2 \1
Replaced 0 occurences

Quesy replace regexp: \>(Libro di Class) (.*)\<
with: \>\2 \1\<
Replaced 0 occurences
Quesy replace regexp: (string.)(Libro di Class) (.*)(./string)
with: \1\3 \2\4
Replaced 0 occurences
Quesy replace regexp: \(string.\)\(Libro di Class\) \(.*\)\(./string\)~ with: \1\3 \2\4
Replaced 112 occurences
Perl の \( と逆なのを ...忘れていた。

曲名も同時に変えなければ意味がない:

iTunes Music Library.xml の中身を変えただけではだめだった。

まず試し:

% foreach i ( * )
foreach? echo $i | perl -nle 's/(\d\d) (Libro di Class) (U.*)(\.m4a)/$1 $3, $2$4/;print;'
foreach? end

mv を付ける:

% foreach i ( * )
foreach? echo $i | perl -nle 's/(\d\d) (Libro di Class) (U.*)(\.m4a)/mv $_ $1 $3, $2$4/;print;'
foreach? end

空白名対策:

% foreach i ( * )
foreach? echo $i | perl -nle 's/(\d\d) (Libro di Class) (U.*)(\.m4a)/mv "$_" "$1 $3, $2$4"/;print;'
foreach? end

shell script に書出:

% touch tt
% foreach i ( * )
foreach? echo $i | perl -nle 's/(\d\d) (Libro di Class) (U.*)(\.m4a)/mv "$_" "$1 $3, $2$4"/;print;' >> tt
foreach? end

結局、うまく行かないので backup から元に戻す:

「そうは問屋が卸さない」かな。



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)