I have a requirement where if a specific condition is met I need to duplicate the whole content of a file into the same file.Here is the file:$ cat in.txtip10.22.1.3410.22.1.35When a condition is met, for instanceif [[ d=1 ]]; thencopy the file contentfithe content of the file should be duplicated like below:ip10.22.1.3410.22.1.35ip10.22.1.3410.22.1.35
Duplicate the content of a file
text processing