On Sun, Jan 9, 2011 at 4:57 PM, Narendra Sisodiya
<[email protected]> wrote:
> On Sun, Jan 9, 2011 at 3:16 PM, Tha.Suresh <[email protected]> wrote:
>> Get a random command
>>
>> $ ls /usr/bin | shuf -n 3
>
> If one add following line to bashrc then
>
> man `ls /usr/bin | shuf -n 1`

echo 'man `ls /usr/bin | shuf -n 1`' >> ~/.bashrc

OR

echo 'man `ls /usr/bin | shuf -n 1` | head -n +6 | tail -n 1' >> ~/.bashrc

depends on your need..

-- 
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to