The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 02-06-2008
joeyg's Avatar
joeyg joeyg is offline
premier etoile de match
 

Join Date: Dec 2007
Location: Home of world champion Boston Celtics
Posts: 533
Cool Are you missing the first part of the request?

#!/bin/sh
history | tail -3 >file_1
f_name="file_1"
cat $f_name


It appears that the first part of the instructions are to create a file with 3 lines of text. So, need something to generate 3 lines of text. (And there are many other ways to generate random text.)
Reply With Quote