GNU bug report logs -
#62328
Not working on ubunto wsl \w, \d, [[:digit:]] not working and [0,9] only sometimes
Previous Next
To reply to this bug, email your comments to 62328 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-sed <at> gnu.org
:
bug#62328
; Package
sed
.
(Tue, 21 Mar 2023 11:43:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Anneliese Leipold <anneliese.leipold <at> yahoo.de>
:
New bug report received and forwarded. Copy sent to
bug-sed <at> gnu.org
.
(Tue, 21 Mar 2023 11:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
I have the following installation: windows11 + wsl ubuntu + sed 4.8
The test-sting is as follows: dataEquity-11521 (128).json
This works, however is not really correct, as I only want to have digits at this place
- idEquityTemp=$(echo "$FILENAME" | sed -E "s/(dataEquity-)(.{1,12})(( \([0,9]{1,3}\))|())(\.json)/\2/g")
These do not work. The result is alway the whole string.:
- idEquityTemp=$(echo "$FILENAME" | sed -E "s/(dataEquity-)(/w{1,12})(( \([0,9]{1,3}\))|())(\.json)/\2/g")
- idEquityTemp=$(echo "$FILENAME" | sed -E "s/(dataEquity-)([a-zA-Z0-9]{1,12})(( \([0,9]{1,3}\))|())(\.json)/\2/g")
- idEquityTemp=$(echo "$FILENAME" | sed -E "s/(dataEquity-)([[:digit:]]{1,12})(( \([0,9]{1,3}\))|())(\.json)/\2/g")
Windows Version
WSL Ubuntu: Version 2.
I reinstalled sed but that didn't help
man sed: Only shows a short version of the manual not this one, so perhaps not the correct sed is installed: https://www.gnu.org/software/sed/manual/sed.html#Introduction
I am looking forward to your response.Thanks,Anneliese
[Message part 2 (text/html, inline)]
[1679383679498blob.jpg (image/png, inline)]
This bug report was last modified 1 year and 282 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.