Posted on 06-11-2015 11:23 PM
Hi all,
Please forgive my bash scripting ignorance, but I was wondering if one of you scripting gods could help me with a small script or command to output a list of files that start with a space character.
Using the find command or something similar is where I'm heading.
Cheers,
Gav
Posted on 06-11-2015 11:58 PM
Wow, how simple:
find /Users/username -name " *"
I'm going to try and output the list of files to a text file and email it to our support team as an attachment. If I manage to get this working I'll post it up. If anyone has any tips of existing scripts like this in the meantime, that would be great.
Cheers,
Gav
Posted on 06-12-2015 01:29 AM
Try:
find /Users/username -name " *" -exec echo {} > /tmp/outfile.txt ;