File: updateMe

package info (click to toggle)
lmod 8.7.60-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,008 kB
  • sloc: sh: 6,266; makefile: 2,837; ansic: 1,513; tcl: 1,382; python: 1,050; csh: 112
file content (8 lines) | stat: -rwxr-xr-x 131 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
#!/bin/bash
# -*- shell-script -*-

if [[ $1 =~ /t1/ ]]; then
   dir=$(dirname $1)
   mv $1 $dir/../..
   echo mv $1 $dir/../..
fi