bash : grep for pattern from certain location in the file
Using dd, the file can be sliced and then grep can be applied for the pattern on that slice.
Using dd, the file can be sliced and then grep can be applied for the pattern on that slice.
Using a combination of patterns with "-o" and/or -"a" (which OR the pattern or AND the pattern) in find command, one can search for various patterns or combine ...
Using -size and -exec flags of find command, one can easily find when the logfile has grown above the threshold and move it to another name in one shot.
Using sort and uniq commands, one can count number of recurrences of records in a file.
Using shell builtin exec, ouput and error output streams of a script can be redirected just like ">" or ">>" operators.
CPU information can be retrieved via /usr/sbin/psrinfo on SunOS while it is available in /proc/cpuinfo on Linux and use hinv on IRIX. Other unix commands like g...
Bash provides "trap" function to trap signals and define handlers.
Using find and test commands you can search for the dangling or broken soft links on a Unix system.
Output redirections using pipes can be used to combine multiple crontab commands to install new cron job or to modify or delete old cron jobs without using any ...
Bash expands a list of strings separated by commas with in braces to a list of strings separated by spaces. This can be used to process files without whole lot ...