Skip to main content
added 42 characters in body
Source Link
Leonid
  • 993
  • 6
  • 9

I'm not sure you can have ETA or any progress display without significantly increasing the complexity of the sed/awk/shell script (and slowing the whole thing as a result). If you just want it to be as fast as possible, just try cat source_file | uniq | sed -n -e '/^077/!p' > dest_file. For an approximation of the progress display, you might want to watch the growing size of the dest_file with that command running in background or in another terminal.

I'm not sure you can have ETA or any progress display without significantly increasing the complexity of the sed/awk/shell script. If you just want it to be as fast as possible, just try cat source_file | uniq | sed -n -e '/^077/!p' > dest_file. For an approximation of the progress display, you might want to watch the growing size of the dest_file with that command running in background or in another terminal.

I'm not sure you can have ETA or any progress display without significantly increasing the complexity of the sed/awk/shell script (and slowing the whole thing as a result). If you just want it to be as fast as possible, just try cat source_file | uniq | sed -n -e '/^077/!p' > dest_file. For an approximation of the progress display, you might want to watch the growing size of the dest_file with that command running in background or in another terminal.

Source Link
Leonid
  • 993
  • 6
  • 9

I'm not sure you can have ETA or any progress display without significantly increasing the complexity of the sed/awk/shell script. If you just want it to be as fast as possible, just try cat source_file | uniq | sed -n -e '/^077/!p' > dest_file. For an approximation of the progress display, you might want to watch the growing size of the dest_file with that command running in background or in another terminal.