Need help with a #NI6 Single quotes stage

Hi!

Im not an experienced terminal user so give me some clarifications please. For example Your unit tests suggest the following raw string as an input for my code:
cat ‘/tmp/pig/f 26’ ‘/tmp/pig/f 17’ ‘/tmp/pig/f 99’

What actually should this command look like after my code process this input? I mean what a correct line of the command to feed it to the terminal should look like.

For now my solution give me this and it is wrong apparently:
cat /tmp/pig/f 26 /tmp/pig/f 17 /tmp/pig/f 99

Thanks!

Should it look like cat /tmp/pig/f /tmp/pig/f /tmp/pig/f instead?

Neither cat /tmp/pig/f /tmp/pig/f /tmp/pig/f nor cat tmp/pig/f tmp/pig/f tmp/pig/f nor cat ~/tmp/pig/f ~/tmp/pig/f ~/tmp/pig/f seem to be working for autotests. What do i miss here?)

Ah, so this topic gave “the insight” i needed Expected: "banana blueberry.banana orange.apple strawberry." remote: [tester::#NI6] Received: "cat: can't open '/tmp/quz/f': No such file or directory"

So we basically should’ve reintrodused single quotation special for cat command for it to be able to process files with spaces insde its name… it wouldve been nice to have a hint like that inside the task description. Welp, the finalized string should look like this:
cat '/tmp/pig/f 26' '/tmp/pig/f 17' '/tmp/pig/f 99'

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.