We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61122da commit ba120faCopy full SHA for ba120fa
implement-shell-tools/cat/cat.js
@@ -20,11 +20,11 @@ for (const filePath of filePaths) {
20
21
for (const line of content.split("\n")) {
22
if (options.n) {
23
- console.log(`${lineNumber} ${line}`);
+ console.log(`${String(lineNumber).padStart(6, ' ')} ${line}`);
24
lineNumber++;
25
} else if (options.b) {
26
if (line.trim()) {
27
28
29
} else {
30
console.log("");
0 commit comments