Menu

(Solved) : Get Help Unix Litle Explanation Write Shell Function Named Delenv Takes Two Arguments 1 Na Q31819943 . . .

Can I get help with UNIX and with a litle explanation Write ashell function named delenv that takes two arguments: (1) the nameof a shell variable and (2) a string to be deleted from the listthat is the value of the shell variable only if that string isalready an element of the list. For example, the call delenv PATH/opt/bin would delete /opt/bin from PATH only if that pathname isalready in PATH. Be sure your solution works even if the shellvariable starts out empty. Also make sure you check the listelements carefully. If /usr/opt/bin is in PATH but /opt/bin is not,the example just given should still remove /opt/bin only fromPATH.

// the other answer on chegg is not correct. please do not justcopy and paste.. Need help

Expert Answer


Answer to Get Help Unix Litle Explanation Write Shell Function Named Delenv Takes Two Arguments 1 Na Q31819943 . . .

OR