test – POFTUT

How To Check If File Exists In Linux Bash?

Linux bash have different file and directory related functions to create, delete, change and check existence. In this tutorial we will look how to check a file or directory if it exists. Check File Existence We will use bash test mechanism. Bash test mechanism have two formats where we can use followings. test -f FILENAME … Read more

How To Grep Text Files With Powershell Grep or Select-String Cmdlet In Windows?

Linux provides tool named grep for filter text data or output according to given string or regular expression. This tool is popular amongst Linux system administrators. On the other side Windows operating systems generally lacks this tool and its functionality up to Powershell. Powershell provides Select-String commandlet to provide similar features and options the Linux grep … Read more

Linux Bash test Command Tutorial With Examples

Bash have programmatic features which gives system administrators a lot of abilities. One of them is test command which will check given conditions and return logic results like true or false . There are a lot of different check functions where we will look most popular and needed ones.  Syntax test EXPRESSION test [ EXPRESSION ] [ ] … Read more