Hi I have a few questions. I am trying to copy a file to a directory. I need to copy files that do not end in numbers, for example, into a directory. This is what I tried so far. cp filename[!1-9] directorytowhereIwannacopy but it says it can't copy to a directory. I need to copy many files into one directory.
My other question is how do you get back to the directory you changed from? You changed into a directory but how do you go back from it? Finally, is there a way you can write a string into many files using just one single command?
Thanks in advance.