On 01/12/2019, at 19:32, Dj <[email protected] 
<mailto:[email protected]>> wrote:
> I'm only trying to change space between words and not carriage returns and 
> all that. So far I've tried placing this in the scripts folder:
> 
> perl -pe 's/ +/ /g'


Hey Dj,

All shell scripts have to have a legitimate shebang line identifying what kind 
of script is to run.

In your case if you want to run at Perl one-liner you need to id your script as 
Bash (or another shell that runs Perl).

This will work:

#!/usr/bin/env bash
perl -pe 's/\h+/ /g'

I've changed your <space> to \h for horizontal whitespace.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to