Questions tagged as 'shell-script'

1
answer

Go through multiple directories on Linux terminal

I have an algorithm that starts with a file. From this file, it generates several others. I need to get all the names of these generated files, to from them, rerun my algorithm. Basically I wanted to know how to do in Shell Script to go through...
asked by 05.10.2018 / 21:30
2
answers

Filter and Execution in Shell Script

I have a problem in Shell Script , where: Need to report a file; Check if it is a .C , .JAVA file or both If it is one of the two, compile as chosen and execute; (I do not understand much of Shell and I had this doubt) #!/bin/...
asked by 16.06.2016 / 14:06
2
answers

How to check if the latency of ip is greater than 0?

Code: if [ 'ping $1 -c1 |grep rtt |awk {'print$4'} |awk -F "/" {'print$2'}' -gt 0 ] then echo "OK" else echo "NO OK" fi Error:    ./ latency.sh: line 1: [: ping $ 1 -c1 | grep rtt | awk {print} | awk -F   "/" {print}: expe...
asked by 08.09.2016 / 06:16