I know some regex but I don't know how to get this to work. I want to list all files that don't have .tab. and don't have ~ at the end of the filename and aren't a .o (or .bin)
I can list all the files that have .tab. by writing
ls | grep .tab.
However I cannot figure out how to make it ignore those files and list everything else. I tried
ls | grep [^(.tab.)]
but got an error and thought my final regex would be
ls | grep ([^(.tab.)]|.o$|.bin$)
But I've never done much regex so I am sure the final is wrong even if the syntax was right.