Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set path a/b/c/d/e/f/g; set common_length 3
- set script {file join}
- set script [concat $script [lrange [file split $path] $common_length end]]
- set path [eval $script]
- puts $path
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement