Tru64 UNIX

sed to play with data or parsing your text

To select all the lines starting from STARTING_PATTERN up to  blank line ^$ and then delete those lines. # sed ‘/STARTING_PATTERN/,/^$/d’ filename To edit files in place, use -i option. # sed -i ‘/STARTING_PATTER/,/^$/d’ filename Insert multiple lines into a file after specified pattern. # sed ‘/cdef/r add.txt’ input.txt # sed ‘/cdef/r add.txt’ input.txt input.txt:abcdaccdcdeflineweb …

sed to play with data or parsing your text Read More »

How to Unzip Multiple Files from Linux / Unix single Command Line

  bash-3.2# ls *.zip 118666-47.zip  120830-06.zip  138852-01.zip  142394-01.zip  147217-02.zip 118777-16.zip  120849-04.zip  139520-02.zip  142933-05.zip  148027-03.zip 119081-25.zip  124204-04.zip  142240-01.zip  143506-06.zip 119963-24.zip  126425-01.zip  142251-02.zip  146470-08.zip bash-3.2# bash-3.2# Problem : bash-3.2# unzip *.zip Archive:  118666-47.zip caution: filename not matched:  118777-16.zip caution: filename not matched:  119081-25.zip caution: filename not matched:  119963-24.zip caution: filename not matched:  120830-06.zip caution: filename not matched:  …

How to Unzip Multiple Files from Linux / Unix single Command Line Read More »

Delete Files Older Than x Days on Linux / Unix

The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them. Command Syntax find /path/to/files* -mtime …

Delete Files Older Than x Days on Linux / Unix Read More »

Operating System Tuning for Oracle Database

This chapter describes how to tune Oracle Database. It contains the following sections: Importance of Tuning Operating System Tools Tuning Memory Management Tuning Disk I/O Monitoring Disk Performance System Global Area Tuning the Operating System Buffer Cache 1.1 Importance of Tuning Oracle Database is a highly optimizable software product. Frequent tuning optimizes system performance and …

Operating System Tuning for Oracle Database Read More »

Compaq Tru64 UNIX: Setting up Standard File Systems

The following table shows the variables and their corresponding values. Variables in Standard File Systems   Variable Description <diskname> Full path of a disk, for example, /dev/rz11c <rawdiskname> Full path of a raw disk, for example, /dev/rrz11c <disktype> Disk type, for example, rz28 <mountpointname> Full path of a mount point, for example, SAP DB: /sapdb/<SAPSID>/sapdata1 …

Compaq Tru64 UNIX: Setting up Standard File Systems Read More »

How to check and install missing perl modules

Check if module is installed. Errors mean missing module. # perl -MModule::Name -e 1 See documentation of the module if installed. # perldoc Module::Name Open CPAN shell # perl -MCPAN -e shell To reconfigure the shell if needed. cpan>o conf init Install an available module. cpan> install HTML::Template You can run the Perl CPAN module …

How to check and install missing perl modules Read More »

Scroll to Top