I'm having problems with the "cd" command in bash not changing directories. From what I've read, I've gathered that scripts are child processes and can't change the directory of their parent process. How do I get around this problem?
OK, thanks. So how exactly would I fix this script? This script is used for finding and entering the directory that the .parentlock file is located for firefox.
#!/bin/bash
direc=$(find -name ".parentlock" | grep firefox | sed s/.parentlock//)