in reply to Re^2: Strange problem trying to clean garbage from start of mailbox file
in thread Strange problem trying to clean garbage from start of mailbox file
be a more idiomatic way to write it?sed -i -e '1d' $file
I believe that piping output into the file you're stream-editing is not the most reliable thing to do. In fact, I'm pretty sure that's why your buffering by "|more" prevents the file from being clobbered.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Strange problem trying to clean garbage from start of mailbox file
by capoeiraolly (Initiate) on Feb 02, 2006 at 23:42 UTC | |
|
Re^4: Strange problem trying to clean garbage from start of mailbox file
by capoeiraolly (Initiate) on Feb 02, 2006 at 23:45 UTC | |
by graff (Chancellor) on Feb 03, 2006 at 03:29 UTC | |
by capoeiraolly (Initiate) on Feb 07, 2006 at 20:16 UTC |