KSH Shell

I am a new Linux user. I have text files with lots of empty lines. How do I delete all empty lines under Linux or Unix operating systems?

{ 1 comment }

I am working on a shell script. I need to find out the current working directory. How do I get the current working directory under Bash or Ksh shell running on Linux or Unix like operating systems?

{ 0 comments }

How do I delete (remove) a directory called $HOME/foo and its content including all files and sub-directories under Unix like operating systems? What is the best way to completely delete /tmp/foo/ with all it’s content?

{ 0 comments }

I am working on a shell script. I need to find out the current user name. How do I find out the current user name under Bash or Ksh shell running on Linux or Unix like operating systems?

{ 0 comments }

How do I get the current year in shell script and store in a shell variable called $myyear?

{ 0 comments }

How do I import variables and functions defined in lib.ksh script to another ksh script called setup.ksh under Linux / Unix like operating systems? How do I execute commands from a file in the current KSH shell?

{ 0 comments }

How do I check ksh version? How do I find out ksh version under UNIX like operating systems?

{ 4 comments }