Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!
How can I loop through the file starting at the end and going backward one line at a time? Can -tail be used for this? I do not want to read only the last 5 lines because I want to use a more complicated condition than the one above. Instead, I want to read the file backwards, starting at the last line then moving up one line at a time.
#!/bin/bash while read LINE do if [ $(( i )) -lt 5 ]; then i=$((i+1)) echo $LINE else break fi done <"$1"
|Mac OS X - Quickest way to delete a folder & all 35000 files in it||3||54|
|Steps to follow for Maintenance of Servers||4||63|
|Run same command on multiple files in Linux||3||32|