I need to remove a specific pattern from a text file.
check this (2005) right now (2003)
I tried using sed for this purpose, however I receive an error.
sed 's/\s(.*)//d' file.txt
I want to remove the following patterns from the file:
The one space character before the bracket also needs to be removed.