Add tags

Add tags to the following comment

sortを使いawkを使わない解。bashとdashで動作確認。

1、3、4、5行目にはタブ文字が含まれています。

1
2
3
4
5
6
IFS='    '
read -r id forename surname age
echo "$id    $surname    $forename    $age"
sort -n -t '    ' | while read -r id forename surname age;do
    echo "$id    $surname    $forename    $((age + 1))"
done

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...