Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • @ChrisDavies I want to verify if each line in the file corresponds to a file in the filesystem. I've updated the question (use of "display" [taken from man echo] rather than "print"). Commented May 21, 2024 at 11:05
  • 1
    Edit the question and add the expected output. Commented May 21, 2024 at 11:05
  • Are you expecting "abc def" to be treated literally (the filename has those quote characters), or do you expect that to be treated as abc def (the quotes only protect the whitespace)? What happened when you tried your xargs commands? Do you have example lines in which it failed to work as expected? Commented May 21, 2024 at 11:52
  • @muru The "abc def" is expected to be treated as file named abc def. Commented May 21, 2024 at 12:11
  • 1
    @ChrisDavies Indeed, to account quote marks, it seems that the "abc def" is expected to be treated as file named "abc def". In my case there are no files with whitespaces nor with quote marks. Commented May 22, 2024 at 13:11