How to search and remove
6 ./ABC/DEG/gmail/xyz.txt
39415 ./ABC/DEG/yahoo/xyz.mp3
goal is to search and remove "/ABC/DEG"
Perl script
use strict;
use warnings;
my $infile = 'file.txt';
local @ARGV = ($infile);
local $^I = '.bac';
while( <> ){
s/ABC/DEG//;
print;
}