Skip to content
Advertisement

Tag: shell

moving files between folders not working

i’m trying to move more than one million files from one folder to another using a script but i’m not getting any results i.e no files moved and i did not get any errors,the script checks if they are more than 20 records in a folder and it moves them in another specified folder,here is my script. any suggestion on

A script wrapper that turns SIGINT into SIGHUP

I use Leiningen REPL that uses SIGINT to interrupt currently running code and to output a new prompt. The REPL can be stopped using SIGHUP or SIGKILL. I don’t actually run anything in the REPL – I just use it for some pre-defined side-effects. The problem is that IntelliJ IDEA can only send SIGINT when it exits to the processes

Looping a bash script

this is my first time dabbling in bash scripting and first time using this site. I’m working on script that’s meant to provide the user with a list of software packages to install and then output their choices into a 2nd script file that can be run later to actually install their choices. So far my script is semi working,

Need help to this bash/shell exercise

The output of this line if expr $x+1 1> /dev/null 2>&1 I really don’t figure out how things go there… Answer Modify your script like this (simple add spaces around the +): expr tries to add 1 to the value of the variable. If the status is 0 (value of $?) it is a number. Otherwise, there is an error,

Script to plot multiple graphs in gnuplot

I try to write a script which will be executed by the shell to use several txt-files in a directory to plot multiple lines in a graph with gnuplot. So if I type in the command for one picture, the results are as imagined. Here you can see the command: Now my Script looks like this: The script edits every

Save multiple instances of an image downloaded by wget

What it does is that the url on top is to a camera taking photos every minute. My code downloads that image, saves it and puts it in a html file every 60 seconds. So what I am trying to do is save the newest image in spy.html and the older ones would iteration through the loop until it reaches

Advertisement