Questions tagged as 'script'

2
answers

How to add auto scrolling in an html div?

I would like to add a kind of automatic scrolling in my html, with start and stop buttons, and I do not know how to do it. I would like that when you click start, the attribute scrolls down slowly, and when you click stop, stop where you are....
asked by 20.01.2018 / 16:44
1
answer

How do I get size of an array string in the shell script?

I have a string that I pass as a parameter, for example: "2,3,4,5" To get every item of it I do: #!/bin/bash for ((i=1; i<=4; i++)) do echo "$1" | cut -d "," -f $i done But I would like to make the loop iterate up to the m...
asked by 14.09.2018 / 20:00
1
answer

Generate script with insert of tables in sql server

I use Sql Server 2012. I made a query with the title above and did not bring anything in the search. I have a BD and I need to take you somewhere else. So, the best way is to generate a script of all the existing objects in it and since I have p...
asked by 11.12.2017 / 20:02
2
answers

How to renumber recursively numbered files, giving name to other files

What I am currently looking to do is rename all files in a folder, where there are also other files of different format. See the example: PASTA - BEFORE 1.txt 2.txt 3.txt Daniela.jpg Amanda.jpg Lucia.jpg What I can not do is exactly...
asked by 31.01.2018 / 21:51
1
answer

Adding cases to a query

I need to create a query that adds 2 cases , but I can not do it the way I did. If the D3_UM = 'PC' field, it should add the D3_QTSEGUM field. If the field D3_UM <> 'PC' , it should add the field D3_QUANT ....
asked by 27.03.2017 / 15:02
1
answer

Call more than one bat script

I have a very chatty situation and I could not find a solution, I have 2 scripts and they are called through another, my problem is that it calls one and not the other, one starts a tomcat and the other starts a hsql bank. Can some...
asked by 14.06.2017 / 14:37
1
answer

Script to exchange place string with another string

I have the file /etc/udev/rules.d/70-persistent-net.rules that have such interfaces: SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="1c:af:f7:e7:a4:3c", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" S...
asked by 21.07.2015 / 20:28
2
answers

Change text to icon according to text

<div class="modeloProduto"> <p>Massa Muscular</p>" </div> I do not handle a lot of site programming but I'm making a website with what I know, I wanted a script that changes the "Muscle Mass" to an icon Type like thi...
asked by 28.10.2018 / 16:19
1
answer

Assign value to input

I have this code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/jquery-maskmoney/3.0.2/jquery.maskMoney.min.js"></script> <...
asked by 27.07.2018 / 16:56
2
answers

Write text in Shell Script

I'm doing a Shell Script, and I have to write a lot of lines in a single file, how can I do it in a more automatic way? Well I started doing it in a very manual way: echo "primeira linha do arquivo" >> /diretorio/arquivo.txt echo "segund...
asked by 27.11.2018 / 00:18