ocehb: (Default)
[personal profile] ocehb
До сих пор не задумывался на эту тему, но работает. Пример:
Задание: Удалить все знаки «+», за которыми следует цифра.

# perl -le '$ARGV[0] =~ s#\+(?=\d)##g && print $ARGV[0]' "+test + +12 +13 ++"
+test + 12 13 ++
#

Date: 2012-01-20 08:47 am (UTC)
avysk: (Default)
From: [personal profile] avysk
sed -e 's/\+\([0-9]\)/\1/g'

Profile

ocehb: (Default)
ocehb

January 2021

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 12th, 2025 12:51 pm
Powered by Dreamwidth Studios