/ * Write a program that, using a synchronous call to the file system, reads a file received by argument and prints to console the number of line breaks ('\ n') it contains. Similar to run cat file | wc -l. The program will receive the path to the file as the only argument. * /
var fs = require('fs');
var NumeroDeLineas = fs.readFileSync(process.argv[2], 'utf-8')
var lineas = NumeroDeLineas/*.toString()*/.split('\n').lenght - 1;
console.log(lineas);