i want it to print the common of the 2 file one file contain the ls -l option and the other one have the ls
ls only have the file name ls -l have everything including the permission and other info.
is there a way for them to print the output of the common one? the comm command doesnt seem to work ( it prints everything)
i tried grep -f file1 file2 but nothing shows up
lets say the ls -l outoutput is
-rwx------ 1 username 230 date and the filename
ls is
filname
i am trying to get the filename aka the union of the 2 file. I dont think there is a way for it to read the filename directory in shell
i want the
filename