- or download this
perl -ne'/(data)/ && print $1 and last' file.txt
perl -ne'/(data)/ && print $1 && last' file.txt
- or download this
.. print ($1) ...
- or download this
perl -MO=Deparse -ne'/(data)/ && print $1 && last' file.txt
- or download this
LINE: while (defined($_ = <ARGV>)) {
print $1 && last if /(data)/;
}
- or download this
perl -MO=Deparse -ne'/(data)/ && print ($1) && last' file.txt
- or download this
LINE: while (defined($_ = <ARGV>)) {
last if /(data)/ and print $1;
}
- or download this
perl -MO=Deparse -ne'/(data)/ && print $1 and last' file.txt
- or download this
LINE: while (defined($_ = <ARGV>)) {
last if /(data)/ and print $1;
}