How many domain names can we give thie domain variable? Just one?
Thanks
#!/bin/bash path=/home/rstenger/ TESTFILE=$(<banners.txt) MYVAR=$( awk 'NR > 6 && NR < 10' "$TESTFILE" ) # echo "" echo "" echo $MYVAR # for i in {1..5}; do echo ""; done echo $TESTFILE exit
sl7jump1~#->./test1.sh awk: cmd. line:2: fatal: cannot open file `****************************************************** * 1st banner has 3 line * ****************************************************** ****************************************************** * 2nd banner has 3 line * ****************************************************** ****************************************************** * 3rd banner has 3 line * ******************************************************' for reading (File name too long) 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 1st banner has 3 line 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 2nd banner has 3 line 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 3rd banner has 3 line 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names 3rd_floor_lab_ex3200s.txt banner banners.txt ban_test.sh base_configs Images lab_cyclades.sh lab_devices.v3.sh Projects savvis.lab_device_list Savvis_Lab-Domain-DNS.txt test1.sh vrf_names
****************************************************** * 3rd banner has 3 line * ******************************************************
[global] workgroup = mygroup server string = HP Samba ; netbios name = MYSERVER ; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 ; hosts allow = 127. 192.168.12. 192.168.13. ; max protocol = SMB2 [My-Documents] path = /home/Jonas/Desktop/My-Documents read only = no ; browseable = yes guest ok = yes
apr 27 12:27:49 jonashp.domain.local systemd[1]: Starting Samba SMB Daemon... apr 27 12:27:49 jonashp.domain.local smbd[4324]: [2015/04/27 12:27:49.686796, 0] ../source3/param/loadparm.c:3034(lp_set_enum_parm) apr 27 12:27:49 jonashp.domain.local smbd[4324]: WARNING: Ignoring invalid value 'share' for parameter 'security' apr 27 12:27:49 jonashp.domain.local smbd[4324]: [2015/04/27 12:27:49.687187, 0] ../source3/smbd/server.c:1286(main) apr 27 12:27:49 jonashp.domain.local smbd[4324]: standard input is not a socket, assuming -D option apr 27 12:27:49 jonashp.domain.local systemd[1]: Started Samba SMB Daemon.
telnet mail.ourdomain.com 25 helo mail.ourdomain.com mail from: unknown@anyname.com rcpt to: anyemailid@ourdomain.com data from: "Any Unknow name" <unknown@anyname.com> to: "Some user Name" <anyemailid@ourdomain.com> subject: Testing MTA with telnet Hi, This way anybody can fool us. Regards, . quit