Devops-Practical-Problem-6

1.Suppose you have multiple servers where a same file exist and you need to get the uniq content only. At this point of time uniq command help you.

Solution:


#!/bin/bash

for i in $(cat hostname.txt)

do

ssh $i uniq file.txt

done



If you are looking for more problem like please purchase below book:

Comments

Popular posts from this blog

Python & Shell Scripting Real Time Course Book & Videos

Top Five Devops Technical Interview QA Books

Linux-Command Hands-On (DF)