Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    @don_crissti - well, if you're interested, the austin group has marked as accepted a request for standardizing tail -r, and so probably you'll be able to do that thing I remember you asking about for tac like tail -rn [num-reversed-lines] sooner than later. Commented Apr 6, 2015 at 18:04
  • @don_crissti - this? That one was because the asker was actually using csh on an old NeXTstep system - though it wasn't apparent at first. In a csh shell the ! can only be escaped with a backslash. Commented Apr 9, 2015 at 12:15
  • @don_crissti - I was wondering if you'd try this out? It's still pretty rough, like I haven't yet got --repeat ironed out to keep all of the args in order - but null_paste --head --sep 'any string' -ts'any string' file1 file2 should get the -s strings applied for every line in order for all named file arguments. --head or --tail or -[ht] will get the string at the head or tail of each line, and repeated occurrences of both or either will get it repeated as many times as they appear. Change the bangline to /bin/sh -xf maybe. Commented Apr 9, 2015 at 12:32
  • @don_crissti - yeah, back. I was banned for a week. I'd almost forgotten about that script. I have to look at it again... Strange you get an endless loop though - it seems weird that I would ask you look at it without at least verifying it didn't do that. I know that at one point it didn't - I was able to use it. I know also that before I quit playing with it a coupla weeks ago I had broken it pretty severely. I didn't think I altered the ver online though. I'll look again... Commented Apr 20, 2015 at 2:24