less - Unable to unbind a shell function -


Based on this question.

I have a shell function

  function man () {man "$ 1" & gt; / Tmp / manual; Less / tmp / manual}  

There is command command in the problem.

How can you change commands with your command?

Change the person to "$ 1" with the path name: / usr / bin / Man or change it to use 'Which Man' within the backquotes? Then run your script in the current shell. On Bash / ksh you need to save your file in some files, say man.sh and then run it as './man.sh'.

  Cat & gt; Man.sh Function Man () {/ usr / bin / man "$ 1" & gt; / Tmp / manual; Low / tmp / manual} ^ d. ./man.sh  

You get this idea. You can define the function at any time: unset -f man


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -