Is there an easy way to delete all symlinks in a directory using a script (bash with awk or similar..) ?
I have a directory containing both ordinary files and symlinks. Now I want to remove all the symlinks.
(And no, to do it manually is no option...)
I must add that this is on a set-top box and the Linux variant is OpenEmbedded (Enigma2) and so the available
linux command could be a little limited. (They are using busybox for some of the commands as well..)
I could use ls -l | grep lrw to get a list of all the symlinks, but then I'm stuck. Have tried fiddling around with awk, but I have not found any usable solution so far...
Any suggestions ?