Example: To load username from /etc/passwd into a database table.
awk -F: '{print $1}' /etc/passwd > passwd_txt
cat passwd_txt | while read username; do echo "insert into {TABLE} (USERNAME,GROUPNAME,PRIORITY) values (""'$username'"", 'acct', 0);" >> users.sql; done;
Subscribe to:
Post Comments (Atom)
Wordpress - Local installation in Vmware
If you're interested in exploring website design with WordPress, this guide will help you set up a WordPress instance on your local mach...
-
[Tested On] CentOS Linux release 7.4.1708 (Core) # wget https://ftp.postgresql.org/pub/source/v9.6.6/postgresql-9.6.6.tar.gz # tar xvzf post...
-
# openssl s_client -connect localhost:443
-
[Tested On] Red Hat Enterprise Linux Server release 7.4 (Maipo) Note: For Windows Server, please make sure telnet client is installed. # tel...
No comments:
Post a Comment