need to parse the following text file:
# example.net config
user = www30021
group = ftp30020
uid = 30021
gid = 30020
tmp_path = /netapp42/shared/www/images/host.example.com/tmp.bin
tmp_perms = defaults,nodev,nosuid,noexec
jail = on
location = /jails/apache/h/host.example.com/
sftp = on
ftps = off
php-cgi = on
perl-cgi = off
I need to find out value for each field and remove any blank spaces / white spaces from the field. How do I solve this problem using awk under Linux or Unix like operating systems?
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?
have a large number of files stored in ~/Downloads/ directory. How do I sort and print sizes in human readable format using du -h
command under Ubuntu Linux LTS version 12.04 or any other Linux distributions?
uiltin commands are contained within the bash shell itself. How do I list all bash builtin commands under Linux / Apple OS X / *BSD / Unix like operating systems without reading large bash man page?
am a new Linux command line user. How do I start or run command in the background so that I can access command prompt immediately?
know how to find out battery life status using Linux
operating system. How do I monitor battery status on a laptop running FreeBSD version 9.x?
ow do I use bash auto complete features with various command on CentOS / RHEL / Fedora / Scientific Linux based systems?