Questions tagged as 'shell'

1
answer

Underline between two variables

I have the following code in a .sh file: echo "$pasta/Dados/$MA/$ano\_$mes/$tabela" With all variables set correctly. However, there you run the script, echo results in data-integration/Dados/MA1/2015\_11/HT_MA1_ESS_SEG While I would...
asked by 12.02.2016 / 20:57
1
answer

How can I reduce the time for creating and burning a Linux image for use in RapsberryPi?

I'm going back to a project where I need RapsberryPi, but the last attempt to create an image is to save it in SdFlash, using the DD command, the process took hours to complete, I left and did not count the time but I will do it again this weeke...
asked by 12.06.2015 / 18:58
1
answer

Change script variable value via Java application

I created a script where within this script there is a loop of type while . The condition of this while is escolha != 1 . Everything works ok, but in the middle of this while I run a Java application where I make some...
asked by 18.07.2015 / 08:12
2
answers

Ignore \ n no with bash

Hello, I have a PHP script that I run on a server, I put it in a cron. For security and maintenance reasons I write the entire STDERR return to a file, but even though the file does not return anything it writes a "\ n" line break in the file ho...
asked by 26.02.2015 / 14:48
1
answer

Why can not I run the file located in the bin?

I need to use the file flare and flasm , which chown and permission are correct. Why can not I just run one and not another? -rwxr-xr-x 1 daniela.morais sudo 64808 Mar 19 13:54 flare* -rwxr-xr-x 1 daniela.morais sudo...
asked by 19.03.2015 / 20:09
1
answer

ShellScript command 'cd'

What command do I use to go straight to the login folder without having to put my example name cd home/leonardovillela .?     
asked by 10.10.2014 / 20:56
2
answers

Script does not show the entire path

Code: for i in 'find $1 -name $4 -type f' ; do path='readlink -f $4' words='cat "$i" | wc -w' echo "$path: $words palavras" done Prints: /home/miglui/Desktop/SO/teste.txt: 14 palavras /home/miglui/Desktop/SO/teste.txt: 48 pala...
asked by 14.10.2014 / 20:54
1
answer

Error: Shell class SyncAccessTokenShell could not be found

My application is cake 2.4.4, is hosted on Amazon. Before the server was apache, but now we migrate to nginx for better performance. As already expected several problems occurred (normal), one more of them that is giving me a certain headache is...
asked by 23.10.2014 / 18:00
2
answers

How to create a shell script that puts an echo at the beginning of each line in a file

I need to create a script that inserts the echo command at the beginning of each line of the file and at the end > > blocodenotas, for example #!/bin/bash ls -l uname -a netstat -tunap I want a script that turns this into: echo "#!/...
asked by 13.12.2018 / 20:39
1
answer

How to create a ZIP file in the Shell? [closed]

How do I create a ZIP file in the Shell with today's date files? The files are all in the same directory.     
asked by 18.06.2018 / 22:35