linux file search and packaging

1. Find all files in the /etc directory that are larger than 1M and of type ordinary files
linux file search and packaging

2. Pack all the files ending with conf under the /etc/ directory, the compressed package name is the time of the day, and copy to the /usr/local/src directory for backup.
linux file search and packaging

3. Use sed to get the IPv4 address of the machine in the ifconfig command
linux file search and packaging

4. Delete all the # and blank characters at the beginning of the line that starts with # and at least one blank character in the /etc/fstab file.
linux file search and packaging
5. Process the /etc/fstab path and use the sed command to retrieve its directory name and base name
linux file search and packaging

Guess you like

Origin blog.51cto.com/15013111/2555035