Board index SCRIPTS Basic (Small scripts)

How to print contents of a text file using for loop

Postby a24uall » Sat Nov 09, 2013 7:52 am

for i in `cat cloudflare.txt`; do echo $i; done


[email protected] [~]# for i in `cat cloudflare.txt`; do echo $i; done
204.93.240.0/24
204.93.177.0/24
199.27.128.0/21
173.245.48.0/20
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
141.101.64.0/18
108.162.192.0/18
190.93.240.0/20
188.114.96.0/20
197.234.240.0/22
198.41.128.0/17
162.158.0.0/15
[email protected] [~]#
Arun
WebhostingDevelopment.com
a24uall
Site Admin
 
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

Return to Basic (Small scripts)

Who is online

Users browsing this forum: No registered users and 1 guest


cron