Category: Shell Script
Aug
30
Searching for Files and Directories Using the find command
Linux, Solaris, Aix, HP-UX, Shell Script Send feedback »The find command recursively descends the directory tree in the path name list, looking for the files that match the search criteria. As the find command locates the files that match those criteria, the path to each file is displayed on the screen.… more »
Aug
30
Searching for Content in Files Using the fgrep
Linux, Solaris, Aix, HP-UX, Shell Script Send feedback »You can use the fgrep command to search a file for a literal string or a group of characters. The fgrep command reads all regular expression characters literally. Regular expression metacharacters have no special meaning to the fgrep command, for exa… more »
Jun
15
How to Find Files with Specific Permission Settings in unix ?
Linux, Solaris, Aix, HP-UX, Shell Script Send feedback »The UNIX administrator needs to know how to find files with specific security settings. Here are a few examples of the find command.
1. Find all SetUID files in and under the current working directory (.).
% find . -type f -perm -4000 -print
2… more »
Jun
03
How to change all file extensions in a folder
Linux, Windows, Solaris, Aix, HP-UX, Shell Script Send feedback »To make sure that you do not destroy your real files make a copy to temporary folder.
# mkdir /tmp # cd tmp Now, I'm in the folder /tmp. Currently, this is a empty working directory. We make 500 new files in the extension .dot as the following: # fo… more »
May
30
Shell scripts are text files that automate a series of UNIX environment-based commands that otherwise must be performed one at a time. Shell scripts are often used to automate command sequences that repeat, such as services that start or stop on syst… more »
Recent comments