menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Cloud News

>

Resolving ...
source image

Johndcook

2d

read

384

img
dot

Resolving a mysterious problem with find

  • The author encountered unexpected behavior while searching for file names using the 'find' command in a shell script.
  • By default, the output of the 'find' command contained invisible null characters after each file name, causing issues in subsequent operations.
  • To fix the issue, the author used the 'strings' command to extract ASCII strings from the input, effectively splitting the string of file names into individual names.
  • For those without the 'strings' command, the author suggests using 'sed' to replace the null characters with newlines.

Read Full Article

like

23 Likes

For uninterrupted reading, download the app