[ILUGC] GNU/Linux commands - basename

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Mon, 19 Sep 2016 19:23:09 +0530

Hi,
basename - strip directory and suffix from filenames

$ basename /etc/apache2/

$ basename /etc/apache2/apache2.conf

$ basename perlscript script

$ basename /etc/group

$ basename /etc/passwd


regards,

T.Dhanasekar


_____________________________________
ILUGC List: http://www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/

Other related posts: