Note: The archives category content is an automatically generated focus channel and does not neccessarily reflect the opinions of this blog. No responsibility is taken for the external links presented here, follow at your own discretion.
The archives content is never scraped from sites - but an abstract obtained from search engines.
| Problem |
Solution |
Example |
Reference |
Recommended |
Again other ways to do this with UNIX, such as grep -vn XXXX filename. But sure there are times you want the line number, of standard input.
|
|
| Problem |
Solution |
Example |
Reference |
Recommended |
echo "testing\ntesting\n123" | perl -e 'while(<>) { chomp(); print($..": ".$_."\n"); }' 1: testing 2: testing 3: 123 Or all on one line echo "testing\ntesting\n123" | perl -ane 'chomp();print($..": ".$_."\n");' 1: testing 2: testing 3: 123
|
Leave a Reply