For a school project, I have to SSH into a folder on the school server, the usr/bin folder which has a list of files, then print a list of files that start with “file”. I know Regex half-decently, at least conceptually, but I’m not sure of the UNIX command to do this.
I tried grep '^[file][a-zA-Z0-9]*' (start of a line, letters f-i-l-e, then 0 or more occurrences of any other number or digit) but that doesn’t seem to work.
Help?
You should be able to use a simple ls command to get this information.