Skip to main content
The 2024 Developer Survey results are live! See the results
Formatting.
Source Link
LiraNuna
  • 66.5k
  • 15
  • 120
  • 141

DIR=your_path find $DIR | sed 's:""$DIR""::'

DIR=your_path
find $DIR | sed 's:""$DIR""::'

'sed' will erase 'your_path' from all 'find' results. And you recieve relative to 'DIR' path.

DIR=your_path find $DIR | sed 's:""$DIR""::'

'sed' will erase 'your_path' from all 'find' results. And you recieve relative to 'DIR' path.

DIR=your_path
find $DIR | sed 's:""$DIR""::'

'sed' will erase 'your_path' from all 'find' results. And you recieve relative to 'DIR' path.

Source Link

DIR=your_path find $DIR | sed 's:""$DIR""::'

'sed' will erase 'your_path' from all 'find' results. And you recieve relative to 'DIR' path.