Quantcast
Viewing all articles
Browse latest Browse all 7

Answer by user1543542 for How to execute consecutive commands from history?

To execute the commands immediately rather than edit them, here is a syntactically slimmer version of Giles answer using eval:

fc -e: 432 435

The colon argument to -e is the bash noop, which has the effect of skipping the "open in an editor" step that fc wants. Also, now the (recent) history will contain the actual commands from history, rather than the eval statement.


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>