Retrieve File Content in PowerShell

Chirag Nagrekar
Updated on 16-Mar-2020 07:47:36

593 Views

To retrieve the content of the file in PowerShell, you need to use Get-Content cmdlet. For example, we are going to retrieve the content of the text file called Aliases.txt from a specific location.ExampleGet-Content D:\Temp\aliases.txtOutputPS C:\WINDOWS\system32> Get-Content D:\Temp\aliases.txt # Alias File # Exported by : admin # Date/Time : 26 January 2020 19:20:24 # Computer : DESKTOP-9435KM9 "foreach", "ForEach-Object", "", "ReadOnly,  AllScope" "%", "ForEach-Object", "", "ReadOnly,  AllScope" "where", "Where-Object", "", "ReadOnly,  AllScope" "?", "Where-Object", "", "ReadOnly,  AllScope" "ac", "Add-Content", "", "ReadOnly,  AllScope" "clc", "Clear-Content", "", "ReadOnly,  AllScope" "cli", "Clear-Item", "", "ReadOnly,  AllScope" "clp", "Clear-ItemProperty", "", "ReadOnly,  AllScope" "clv", "Clear-Variable", "", "ReadOnly,  AllScope" "compare", "Compare-Object", "", "ReadOnly,  AllScope" "cpi", "Copy-Item", "", "ReadOnly,  AllScope" "cpp", "Copy-ItemProperty", "", "ReadOnly,  AllScope" "cvpa", "Convert-Path", ... Read More

Sine Wave Distortion Effect with CSS

Chandu yadav
Updated on 16-Mar-2020 07:46:18

495 Views

Wave effect is used to give the object a sine wave distortion to make it look wavy.The following parameters can be used in this filterS.NoParameter & Description1AddA value of 1 adds the original image to the waved image, 0 does not.2FreqThe number of waves.3LightThe strength of the light on the wave (from 0 to 100).4PhaseAt what degree the sine wave should start (from 0 to 100).5StrengthThe intensity of the wave effect.ExampleYou can try to run the following code to set wave effect −Live Demo                         Text Example:       CSS Tutorials    

What is Get-Content in PowerShell Used For

Chirag Nagrekar
Updated on 16-Mar-2020 07:45:32

411 Views

Get-Content cmdlet in PowerShell is useful for retrieving the contents of the file or the function. This cmdlet is introduced in PowerShell 3.0. When a file is read by this cmdlet, it reads one line at a time and finally returns the whole content as a collection of objects.SyntaxGet-Content    [-ReadCount ]    [-TotalCount ]    [-Tail ]    [-Path]    [-LiteralPath]    [-Filter ]    [-Include ]    [-Exclude ]    [-Force]    [-Credential ]    [-Delimiter ]    [-Wait]    [-Raw]    [-Encoding ]    [-AsByteStream]    [-Stream ]    []

CSS border-bottom-left-radius Property

karthikeya Boyini
Updated on 16-Mar-2020 07:45:09

69 Views

Use the border-bottom-left-radius property to set the border of the bottom left corner. You can try to run the following code to implement the border-bottom-left-radius property −ExampleLive Demo                    #rcorner {             border-radius: 25px;             border-bottom-left-radius: 45px;             background: blue;             padding: 20px;             width: 200px;             height: 150px;          }                     Rounded corners!    

Fade Out Right Animation Effect with CSS

Samual Sam
Updated on 16-Mar-2020 07:43:47

154 Views

To implement Fade Out Right Animation Effect on an image with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;             background-position: left top;             padding-top:95px;             margin-bottom:60px;             -webkit-animation-duration: 10s;             animation-duration: 10s;             -webkit-animation-fill-mode: both;             animation-fill-mode: both;          }          @-webkit-keyframes fadeOutRight {             0% {                opacity: 1;                -webkit-transform: translateX(0);             }             100% {                opacity: 0;                -webkit-transform: translateX(20px);             }          }          @keyframes fadeOutRight {             0% {                opacity: 1;                transform: translateX(0);             }             100% {                opacity: 0;                transform: translateX(20px);             }          }          .fadeOutRight {             -webkit-animation-name: fadeOutRight;             animation-name: fadeOutRight;          }          animation-name: fadeOutLeft;                               Reload page                function myFunction() {             location.reload();          }          

CSS border-top-right-radius Property

George John
Updated on 16-Mar-2020 07:42:59

73 Views

Use the border-top-right radius property in CSS to set the top right radius border. You can try to run the following code to implement border-top-right-radius property −ExampleLive Demo                    #rcorner {             border-radius: 25px;             border-top-right-radius: 45px;             background: orange;             padding: 20px;             width: 200px;             height: 150px;          }                     Rounded corners!    

Clear Content of Recycle Bin in PowerShell

Chirag Nagrekar
Updated on 16-Mar-2020 07:42:35

3K+ Views

Recycle bin in Windows operating system is to store the soft-deleted data. Soft deleted data means, data that is not deleted with (SHIFT + DEL) button but simply deleted with DEL button. Each local disk has its own configured recycle bin space.To delete the recycle bin data using GUI, you can simply right click and delete the content.It is also possible to delete the recycle bin content with the PowerShell command with the Clear-Recyclebin cmdlet. This command is introduced in PowerShell 5 and available in newer versions as well.ExampleClear-RecycleBinOutputPS C:\WINDOWS\system32> Clear-RecycleBin Confirm Are you sure you want to perform this action? Performing the operation "Clear-RecycleBin" on target "All of the contents of the Recycle Bin". [Y] Yes  [A] Yes to All ... Read More

CSS border-bottom-right-radius Property

Lakshmi Srinivas
Updated on 16-Mar-2020 07:42:18

61 Views

Use border-bottom-right-radius property for setting the border of the bottom right corner. You can try to run the following code to implement border-bottom-right-radius property −ExampleLive Demo                    #rcorner {             border-radius: 25px;             border-bottom-right-radius: 45px;             background: orange;             padding: 20px;             width: 200px;             height: 150px;          }                     Rounded corners!    

Fade Out Left Big Animation Effect with CSS

karthikeya Boyini
Updated on 16-Mar-2020 07:40:19

96 Views

To implement Fade Down Left Big Animation Effect on an image with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;             background-position: left top;             padding-top:95px;             margin-bottom:60px;             -webkit-animation-duration: 10s;             animation-duration: 10s;             -webkit-animation-fill-mode: both;             animation-fill-mode: both;          }          @-webkit-keyframes fadeOutLeftBig {             0% {                opacity: 1;                -webkit-transform: translateX(0);             }             100% {                opacity: 0;                -webkit-transform: translateX(-2000px);             }          }          @keyframes fadeOutLeftBig {             0% {                opacity: 1;                transform: translateX(0);             }             100% {                opacity: 0;                transform: translateX(-2000px);             }          }          .fadeOutLeftBig {             -webkit-animation-name: fadeOutLeftBig;             animation-name: fadeOutLeftBig;          }                           Reload page                function myFunction() {             location.reload();          }          

CSS Border Radius Property

Samual Sam
Updated on 16-Mar-2020 07:37:13

156 Views

Use the border-radius property to set four border-radius property. You can try to run the following code to implement border-radius property −ExampleLive Demo                    #rcorner {             border-radius: 25px;             background: #8AC007;             padding: 20px;             width: 200px;             height: 150px;          }                     Rounded corners!    

Advertisements