Posts by Zumo de Vidrio • 237 points
7 posts
-
1
votes1
answer599
viewsA: How to commit using command line in SVN
First you have to add the files with the command: svn add *
-
1
votes3
answers80
viewsA: Deleting parts of a Text
You can do it with cut: echo "/home/meucliente/public_html" | cut -d'/' -f3
-
2
votes1
answer626
viewsA: When accessing with specific user he give an ssh on another server
First you have to configure the A server so that it can access the B server using public and private keys instead of with user and password. To do this, read here After that, you can run ssh to…
-
1
votes3
answers537
viewsA: How to remove the space of "4 980 Raphael" only between numbers
Analogous to @Mathias' reply but with awk inves of the sed: echo "4 980 Rafael" | awk '{sub(" ","")}1'
-
-2
votes1
answer50
viewsQ: Automatic scroll on browser output
I have a php script that returns a lot of data on the screen, but the scroll always gets to the beginning of it so I have to press the keyboard fin button all the time until the script is finished.…
-
4
votes2
answers1001
viewsA: How to debug shell script in linux?
You can debug bash by running the script with the -x parameter: bash -x nome_do_seu_script.sh If you just want to debug a part of the code, you can end it with set: set -x <código> set +x…
-
2
votes2
answers665
viewsA: What is a regular expression?
A regular expression is simply a set of characters that make a search pattern, for example, instead of writing the full name of a file, you can write the beginning of the name followed by the…