DEV Community

Query Filter
Query Filter

Posted on

docker83

# This removes the first segment of the line if it looks like a timestamp
sed -E 's/^[0-9]{4}-[0-9]{2}-[0-9]{2}[T\s][0-9:.-]+Z?\s*//g' raw_logs.txt > clean_logs.txt
Enter fullscreen mode Exit fullscreen mode

Top comments (0)