-------------------------------------------------------------------------------- subshells: () useful in eliminating intermediate files -------------------------------------------------------------------------------- A subshell allows you to undertake sequential operations at the command level and then return back to the command line. Subshells consist of "()" with commands inside the brackets. $ (echo "Hello"; echo "Kitty") Hello Kitty $ (echo "Hello";echo "Kitty")>a #capture output to a file This does not seem to be of much use. However, as will become clear by the discussion below, a subshell can eliminate the need for intermediate files. Here is an effective use of subshells. Say you want to view the top and bottom 10 lines of a file. The simple approach is $ head file; tail file You can use subshells to save a bit of typing $ (head; tail) < file $ (head;tail)