Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Unix では、どのようにしてファイル内の pattern: を見つけ、mm/dd/yyyy hh:mmそれを に置き換えますmm/dd/yyyyか?
mm/dd/yyyy hh:mm
mm/dd/yyyy
これが1つの方法sedです:
sed
sed -r 's|([0-9]{2}/[0-9]{2}/[0-9]{4}) [0-9]{2}:[0-9]{2}|\1|g'