[root@srv indices]# curl -XDELETE 'admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.1{2,3,4,5}'
[1/4]: admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.12 --> <stdout>
--_curl_--admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.12
{"acknowledged":true}
[2/4]: admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.13 --> <stdout>
--_curl_--admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.13
{"acknowledged":true}
[3/4]: admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.14 --> <stdout>
--_curl_--admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.14
{"acknowledged":true}
[4/4]: admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.15 --> <stdout>
--_curl_--admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.15
{"acknowledged":true}[root@srv indices]# curl -XDELETE 'admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.1{6,7,8,9}'
[1/4]: admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.16 --> <stdout>
--_curl_--admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.16
{"acknowledged":true}
[2/4]: admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.17 --> <stdout>
--_curl_--admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.17
{"acknowledged":true}
[3/4]: admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.18 --> <stdout>
--_curl_--admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.18
{"acknowledged":true}
[4/4]: admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.19 --> <stdout>
--_curl_--admin:Ic1oWCIbAsgpx6Hq4QnQ@localhost:9200/prod-crm-2016.11.19
poniedziałek, 21 listopada 2016
wtorek, 1 listopada 2016
Python String Formating - get first char and make it capitalize
#!/usr/bin/env python
def main():
name = raw_input("What is your name: ")
lastname = raw_input("What is yout lastname: ")
age = input("Enter your age: ")
z = "%s %s" % (name,lastname)
x = "%s %s" % (name[:1].upper(),lastname[:1].upper())
print z
print x
print("hello {} {} you have {}".format(name,lastname,age))
mystr=name
mstr=lastname
print mystr[:1].upper(),mstr[:1].upper()
string = "marek borkowski"
print string[0].upper()+string[1:]
if __name__ == "__main__":
main()
def main():
name = raw_input("What is your name: ")
lastname = raw_input("What is yout lastname: ")
age = input("Enter your age: ")
z = "%s %s" % (name,lastname)
x = "%s %s" % (name[:1].upper(),lastname[:1].upper())
print z
print x
print("hello {} {} you have {}".format(name,lastname,age))
mystr=name
mstr=lastname
print mystr[:1].upper(),mstr[:1].upper()
string = "marek borkowski"
print string[0].upper()+string[1:]
if __name__ == "__main__":
main()
Subskrybuj:
Posty (Atom)