KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have inherited this sed script snippet that attempts to remove certain empty spaces: s/[\s\t]*|/|/g s/|[\s\t]*/|/g s/[\s] *$//g s/^|/null|/g that operates on a file that is around 1Gb large. This script runs for 2 hours on our unix server. Any ideas how to speed it up? Notes that the \s stands for a space and \t stands for a tab, the actual script uses the actual space and tab and not those symbols The input file is a pipe delimited file and is located locally not on the network. The 4 lines are in a file executed with sed -f
Tags (comma-separated)
Save Edits
Cancel