POSIX Shell Programming Challenge - Programming On Unix
Users browsing this thread: 1 Guest(s)
|
|||
(12-04-2021, 10:49 AM)movq Wrote: Is it valid to print `test/foo`? Or should it be just `foo`? The latter opens another can of worms.Well since we're only printing files from a single directory, wouldn't that simply be solved by stripping the directory name from the path when echoing it back to the user i.e. Code: echo "${i##test/}" |
|||