in reply to perl one liner with -F special char
Whatever you are using in your split use it in your -F as is
for example
Notice the -F uses whatever is in your split.perl -naF"/\^/" -e '$key="$F[0],$F[1],$F[2],$F[3]\n"; print $key if ( +! $seen{$key} ++ );' datafile 4363,7619082,309839685,309841122
Update: Please quote your param for F switch as you don't want the shell to interpret your backslashes.
|
|---|