[ale] history command in script

David S. Jackson deepbsd at earthlink.net
Tue Mar 12 12:33:18 EST 2002


Hi,

I had a tiny script:


#!/usr/local/bin/bash 


echo "Do you want the full argument or just the base command?"
read answer


if echo $answer | grep -i y ; then
   history 1000 | tr -s " " | cut -d " " -f3- | sort | uniq -c |sort -r | less
else
   history 1000 | cut -d' ' -f5 | sort | uniq -c | sort -r | less
fi


But "history" doesn't seem to get executed.  Is that because it's
a builtin?  Why should that make a difference?  Is there another
reason why "history" doesn't get executed?

TIA.

-- 
David S. Jackson                        dsj at dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
For my birthday I got a humidifier and a
de-humidifier...  I put them in the same room and
let them fight it out.  -- Steven Wright

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list