Hello Monks -- quick question for ya guys
i thought i could slurp the whole file from command line using the following code, havent had any luck. wonder if can't do this from the commandline -- if i replaced the /n with // it shows up in one line but was wondering why it wouldnt work with undef $/ Thanks and Happy New Year!
perl -e 'undef $/; $text=<>; print $text; $/="\n";' list
list contains the following information
graff: thanks -
Went with the following to do what i wanted :
perl -e 'undef $/; $text=<>; $text =~ tr/\n//; 1 while $text =~ s/\b(
+\w+\d+\s*\d+\.\d+\.\d+\.\d+)\s*\1\b/$1/ig; print $text; $/="\n"; list
basically deletes the duplicates entries one after the other with "slurping"