The given commands are performing a grep search for specific patterns in the files located at the specified directory.

The first command searches for the pattern '-60.23' in the files located at '/mnt/hpc/home/zhengpu/srb/enzdes_4/*/*complex__DE_21.pdb'. The '-r' option is used to search recursively, the '-l' option is used to list only the file names that contain the pattern, and the '-e' option is used to specify the pattern to search for.

Similarly, the following commands search for different patterns ('-57.61', '-60.03', '-56.2', '-59.67', '-57.54', '-57.84', '-57.73', '-59.74', '-55.48', '-61.46', '-58.85', '-57.46', '-53.18', '-57.08', '-56.91', '-58.59', '-56.04', '-56.63', '-54.16') in the same set of files.

The output of each command is a list of file names that contain the respective pattern.

After that, the command 'grep -r -l -e '-60.23' /mnt/hpc/home/zhengpu/srb/enzdes_4/*/complex__DE_21.pdb' is replaced with 'grep -r -l -e '-60.23' /mnt/hpc/home/zhengpu/srb/enzdes_4//complex__DE_83.pdb'. This command searches for the pattern '-60.23' in the files located at '/mnt/hpc/home/zhengpu/srb/enzdes_4//*complex__DE_83.pdb'.

The output of this command is a list of file names that contain the pattern '-60.23' in the files located at '/mnt/hpc/home/zhengpu/srb/enzdes_4/*/*complex__DE_83.pdb'.

Similarly, the replacement command is given for each of the previous commands.

The final output is a list of file names that contain the respective patterns ('-60.23', '-57.61', '-60.03', '-56.2', '-59.67', '-57.54', '-57.84', '-57.73', '-59.74', '-55.48', '-61.46', '-58.85', '-57.46', '-53.18', '-57.08', '-56.91', '-58.59', '-56.04', '-56.63', '-54.16') in the files located at '/mnt/hpc/home/zhengpu/srb/enzdes_4/*/*complex__DE_83.pdb'.

Find Specific Patterns in Files Using Grep

原文地址: https://www.cveoy.top/t/topic/eP3G 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录