Hoffman2:Scripts:clean up.sh: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
(Created page with "This script is used to clean up certain FSL processing files. 1. tsplot 2. feat folders (+.feat) 3. FSL stdout and stderr files (such as *.e28678.8, *.o4436) 4. files end with .con .grp .Icon .mat Load the module first module load ccnscripts For clean up feat folders, clean_up.sh -f PATH/TO/FOLDER For .o and .e files clean_up.sh -o PATH/TO/FOLDER For tsplot clean_up.sh -t PATH/TO/FOLDER")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
This script is used to clean up certain FSL processing files.
This script is used to clean up the following files.


  1. tsplot
  1. tsplot
Line 5: Line 5:
  3. FSL stdout and stderr files (such as *.e28678.8, *.o4436)
  3. FSL stdout and stderr files (such as *.e28678.8, *.o4436)
  4. files end with .con .grp .Icon .mat
  4. files end with .con .grp .Icon .mat


Load the module first
Load the module first
  module load ccnscripts
  module load ccnscripts


For clean up feat folders,
For clean up feat folders,


  clean_up.sh -f PATH/TO/FOLDER
  clean_up.sh -f /PATH/TO/FOLDER


For .o and .e files
For .o and .e files


  clean_up.sh -o PATH/TO/FOLDER
  clean_up.sh -o /PATH/TO/FOLDER


For tsplot
For tsplot


  clean_up.sh -t PATH/TO/FOLDER
  clean_up.sh -t /PATH/TO/FOLDER
 
Log File:<br>
A log file will be generated under the folder where you run it, named as "clean_up_log.YYYYMMDD_ss"
 
This script will moved selected files to $SCRATCH folder. In case you want to recover files being cleaned up by this script, you can look for them in your $SCRATCH folder

Latest revision as of 22:36, 19 May 2025

This script is used to clean up the following files.

1. tsplot
2. feat folders (+.feat)
3. FSL stdout and stderr files (such as *.e28678.8, *.o4436)
4. files end with .con .grp .Icon .mat

Load the module first

module load ccnscripts

For clean up feat folders,

clean_up.sh -f /PATH/TO/FOLDER

For .o and .e files

clean_up.sh -o /PATH/TO/FOLDER

For tsplot

clean_up.sh -t /PATH/TO/FOLDER

Log File:
A log file will be generated under the folder where you run it, named as "clean_up_log.YYYYMMDD_ss"

This script will moved selected files to $SCRATCH folder. In case you want to recover files being cleaned up by this script, you can look for them in your $SCRATCH folder