こんなソフト無いですか? in Linux板 (10th)
■ このスレッドは過去ログ倉庫に格納されています
0361356
2009/07/27(月) 05:16:47ID:bXASRZ0Kこういう処理は需要無いんですかね。
#!/usr/bin/awk -f
BEGIN {
max=0
}
{
store[NR]=$0
if (length($0)>max) max=length($0)
}
END {
for (i=1;i<=NR;i++) {
while (length(store[i])<max) {
store[i]=store[i] " "
}
}
for (i=1;i<=max;i++) {
for (j=1;j<=NR;j++) {
printf "%s", substr(store[j],i,1)
}
printf "\n"
}
}
■ このスレッドは過去ログ倉庫に格納されています