{"items": [{"author": "Cortland", "source_link": "https://www.facebook.com/notes/jeff-kaufman/wednesday-august-04-2010-shell-history-and-the-value-of-text-only-environments/415358386212/?comment_id=415369186212", "anchor": "fb-415369186212", "service": "fb", "text": "I wonder if $(history 2 |tail -n 1) would be noticeably faster.", "timestamp": "1280941683"}, {"author": "Cortland", "source_link": "https://www.facebook.com/notes/jeff-kaufman/wednesday-august-04-2010-shell-history-and-the-value-of-text-only-environments/415358386212/?comment_id=415369241212", "anchor": "fb-415369241212", "service": "fb", "text": "Or maybe $(history 2|head -n 1)", "timestamp": "1280941697"}, {"author": "Jeff&nbsp;Kaufman", "source_link": "https://www.facebook.com/notes/jeff-kaufman/wednesday-august-04-2010-shell-history-and-the-value-of-text-only-environments/415358386212/?comment_id=415370406212", "anchor": "fb-415370406212", "service": "fb", "text": "Thanks!  Because the command is run non-interactively (and so does not affect the history) what we'd need is $(history 1).  My skim of the history help page in bash didn't turn up that it would do that.", "timestamp": "1280941969"}, {"author": "David&nbsp;Chudzicki", "source_link": "https://www.facebook.com/notes/jeff-kaufman/wednesday-august-04-2010-shell-history-and-the-value-of-text-only-environments/415358386212/?comment_id=10151364697986213", "anchor": "fb-10151364697986213", "service": "fb", "text": "Thanks Jeff! I just started doing this. I don't do as much at a command prompt as you, but it'll still be useful.", "timestamp": "1369005996"}]}