Posts

Excel Tips - How to add New Line in Cell using Shortcuts

Image
  Tamizh Tech Tutorial Excel Tips - How to add New Line in Cell                 In this tutorial, you will learn how to add new line in excel using shortcuts. Steps Select the target cell and go to the formula bar. Type word and press Alt+Enter key if you need a newline and press ok. Result Before Update Select the target cell and type the word Expand the formula bar, Press Alt + Ctrl when you need a new line, then the formula bar will add the new line automatically like the screenshot below Result After Update 

3 Linux Tips to Show File Contents with Line Numbers

Image
  Tamizh Tech Tutorial 3 Linux Tips to Show File Contents with Line Numbers                  (3 Examples) In this tutorial, you will learn 3 tips to display the file contents along with line numbers in linux / unix with examples Three Tips Using cat command with option -n Using bat command without option Using nl command without option 1. Using cat command with option -n This command is used to display the file contents with special option -n Syntax cat -n filename Where, f ilename is an existing input filename. Example  2. Using bat command This is the latest linux command, similar to cat command This command is also used to display the file contents without any option. NOTE By default, this command is not installed on your machine. So you need to install it externally based on your distribution before using it. Syntax bat filename Where, f ilename is an existing input filename. Examp...

bat command in linux

Image
 Bat Command in Linux bat command It is the replacement of cat command It is used to show the file contents with syntax highlighting. It is similar to cat command but bat command adds support for syntax highlighting to make the text easier to read (retrieval) NOTE By default, this command is not installed on your machine. So you need to install it based on the linux distribution, before to test this command. Syntax         bat filename Example 1 - Displaying contents of text file Example 2 - Displaying file contents of shell script

how to use div tag in html and css with examples

Image
  Tamizh Tech Tutorial ................ div tag div stands for division and it is a type of container tag  It is mainly used to create a division or section in HTML page It is styled easily by using its tagname or class or id attribute. Syntax     <div>          </div> I. EXAMPLE OF CREATING RECTANGULAR SHAPE USING <DIV> TAG NOTE In order to create a square shape, the height and width attributes should be equal size. 1. SOURCE CODE <html>     <head>         <title>TODO supply a title</title>         <style>             div             {                 border: 4px double black;                 width: 300px;                 height:300px;         ...

Paste Command in Linux with Examples

Image
Tamizh Tech Tutorial Paste Command in Linux  (Linux Commands) Linux for Beginners Paste Command in Linux (5 Examples) This tutorial provides 5 practical examples of paste command in linux / unix OS. Paste Command  This command is mainly used to merge the file contents horizontally  This command is also used to display the single file contents. Operations Merging Files Horizontally Merging Files Horizontally with delimiter option Merging Files Sequentially Displaying File Contents using Paste Reading and Displaying Data in Paste Command 1. Merging Files Horizontally Be default, the paste command is used to merge the two or more number of files horizontally (parallelly) with tab delimiter Here, lines of the files are merged horizontally Syntax p aste file1 file2 … file n Example Here files like f1.txt, f2.txt and f3.txt are merged horizontally with tab delimiter by default using paste command. 2. Merging Files Horizontally with delimiter option Be default, files are merg...

String Handling in C++

Image
  C++ Strings String It is a set of characters (group of characters) arranged in sequential memory location In c/c++, there is no specific built-in data type point to string type  We can perform various operations on strings such as Comparing Joining Reversing Indexing and many more, etc,...  C++ supports two types of strings. They are C Style String (Character Array) String Class. 1. C STYLE STRING In c style string, the string is group of characters terminated with null character It will be created either character array or character pointer Example 1 – String Declaration      char name[50]; Example 2 – String Definition      char name[]=”Hello”; Here, the array name will hold the values “Hello” with additional null character \0 which is automatically added by the compiler (unlike c) Memory Representation      I. EXAMPLE OF C STYLE STRING 1. SOURCE CODE #include <iostream> using namespace std; int ...