Thanks Chris. *This solution works perfectly.* :-)

Le lundi 13 mars 2017 20:02:11 UTC+1, Christopher Stone a écrit :
>
> On Mar 13, 2017, at 12:26, Magick! <[email protected] <javascript:>> 
> wrote:
>
> I have two text files: fichier1.csv and fichier2.csv and I want to remove 
> from the first all the lines that contain an email address of the second.
> How to make it with BBEdit?
>
> ------------------------------
>
> Hey There,
>
> Well...  Let's start out by doing this on the files in-place with a shell 
> script.
>
> #!/usr/bin/env bash
>
> # Change directory to the proper location
> cd ~/test_directory/magick_test/
>
> # Remove the patterns in file2 from file1 and store result in file3
> grep -v -F -f fichier2.csv fichier1.csv > fichier3.csv
>
> Test this in an isolated folder with TEST files NOT originals.
>
> Make sure you understand how to use POSIX Paths on macOS.
>
> This is a $HOME-based or tilde-based path that is anchored to your 
> home-user-directory:
>
> ~/test_directory/magick_test/
>
> This is an absolute path:
>
> /Users/YourUserName/test_directory/magick_test/
>
> Tilde-paths are better – when you can use them – because they are more 
> portable/robust than absolute paths.
>
> IF your path contains spaces then the space must be either escaped or 
> quoted.
>
> ~/test\ directory/magick_test/
>
> ~/'test directory/magick_test/'
>
> ~/'test directory'/magick_test/
>
> /Users/YourUserName/test\ directory/magick_test/
>
> '/Users/YourUserName/test directory/magick_test/'
>
> All of these forms are valid – but I personally prefer the quoted path – 
> because I find it easier to read.
>
> You cannot quote the “~/” portion of a tilde-based-path.
>
> If this methodology doesn't work for you then please explain your work 
> flow more precisely.
>
> --
> Best Regards,
> Chris
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://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