This page explained how to read file line by line in bash shell script. *** Do not forget to run php5enmod and restart the server (httpd or php5-fpm) *** Conclusion Installing php package php5-suhosin-extension. Sample outputs: Installing php package php-pear. #!/bin/bash # BASH can iterate over $list variable using a "here string" # while IFS= read -r pkgĭo printf 'Installing php package %s.\n' " $pkg" /usr /bin / apt-get -qq install $pkg done <<< " $list" printf '*** Do not forget to run php5enmod and restart the server (httpd or php5-fpm) ***\n' Bash Scripting: Read text file line-by-line to create pdf filesĤ||Mysql User Creation: Setting Up a New MySQL User Accountġ7267||Linux: Check Battery Status Commandġ7245||Linux Restart NTPD Service Commandġ7183||Ubuntu Linux: Determine Your IP Addressġ7172||HowTo: Determine an IP Address My Linux Serverġ6510||Linux / Unix: Restart PHP Service CommandĨ292||FreeBSD: Mount Hard Drive / Disk Command The Internal Field Separator (IFS) that is used for word splitting after expansion and to split lines into words with the read builtin command command. Fig.01: Bash shell scripting- read file line by line demo outputs
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |