HF RL Explorer

Task: Extract Directory from File Path

Task: Extract Directory from File Path: a task in Terminal-Lego-15k (Harbor dataset). Write a bash script that extracts the directory portion from a file path string. Given a file path variable, you need to extract just the directory path (without the filename).

The task

Write a bash script that extracts the directory portion from a file path string. Given a file path variable, you need to extract just the directory path (without the filename).

Part of PrimeIntellect/Terminal-Lego-15k.