Skip to content
The Unix Tips
cat /vishal/brain > theunixtips.com
  • About
  • Contact Me

Tag: bash

Bash/Shell Scripts/Unix Admin

bash : grep for pattern from certain location in the file

Posted on August 21, 2011 by Vishal Jain

Using dd, the file can be sliced and then grep can be applied for the pattern on that slice.

Bash/Shell Scripts/Unix Admin

bash : search multiple file patterns using single find command

Posted on June 9, 2011 by Vishal Jain

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 ...

Bash/OS Interoperability/Shell Scripts/Unix Admin

Howto rollover a file when size exceeds using unix find

Posted on March 27, 2011 by Vishal Jain

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.

Bash/Shell Scripts

bash : Count number of recurrence of lines

Posted on January 8, 2011 by Vishal Jain

Using sort and uniq commands, one can count number of recurrences of records in a file.

Bash/Debugging Tools/Unix Admin

bash : Self redirect of Script’s output to a file

Posted on September 4, 2010 by Vishal Jain

Using shell builtin exec, ouput and error output streams of a script can be redirected just like ">" or ">>" operators.

Hardware/OS Interoperability/Unix Admin

How to find number of CPUs on unix system

Posted on June 24, 2010 by Vishal Jain

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/Unix Admin

bash : Signal Handling

Posted on June 15, 2010 by Vishal Jain

Bash provides "trap" function to trap signals and define handlers.

Bash/OS Interoperability/Perl/Unix Admin

find broken symlinks

Posted on May 24, 2010 by Vishal Jain

Using find and test commands you can search for the dangling or broken soft links on a Unix system.

Bash/OS Interoperability/Unix Admin

bash : Automate add/modify/delete of cron jobs from a script

Posted on May 21, 2010 by Vishal Jain

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/Unix Admin

bash : brace expansion for automatic substitution

Posted on April 21, 2010 by Vishal Jain

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 ...

Recent Posts

  • OTTO – Automate C/C++ CMake for Large Repositories
  • How to persist iptables settings on debian
  • How to Change Console Fonts In Ubuntu for 4K Screen
  • HP Spectre x360 convertible and Linux
  • HOWTO Develop Apache Module in C++

Top Posts

  • xming : Client 4 rejected from IP
  • bash : Self redirect of Script's output to a file
  • VirtualBox : Use Raw Disk to load Windows under Linux
  • perl : find if IP address is in Network range
  • mimikatz : Export non-exporteable Private certificate from Symantec PKI
  • Create Post Excerpt Intelligently in Jekyll
  • HP Spectre x360 convertible and Linux
  • How to Change Console Fonts In Ubuntu for 4K Screen
  • perl : Extract filename from full path

Recent Posts

  • OTTO – Automate C/C++ CMake for Large Repositories
  • How to persist iptables settings on debian
  • How to Change Console Fonts In Ubuntu for 4K Screen
  • HP Spectre x360 convertible and Linux
  • HOWTO Develop Apache Module in C++

Follow Me

  • LinkedIn
  • GitHub
© 2021 The Unix Tips
Powered by WordPress | Theme: Graphy by Themegraphy