Hi Ben, 

in your case I would try to look at the file with vi or less. So I would do

> cd <whatever-path-it-is>
> perl -p -e 's/\r\n/,/' ver47-interessantes.csv > a.csv

Now look at the file with 

> vi a.csv

In order to quit vi type ESC :q! 

The grep command expects the case data to start with „Teilnehmer“ at the 
beginning of the line. You can
run 

> grep Teilnehmer a.csv 

to see if this is the case. grep prints out lines containing that text pattern. 

Friedrich

Am 02.11.2014 um 20:28 schrieb Benjamin Oppermann <ben....@eml.cc>:

> Hi Friedrich,
> It's not working.
> I used this exact command: perl -p -e 's/\r\n/,/' 
> /media/Acer/Users/Benjamin/ownCloud/A-UNI/BA-Arbeit.SoSe2014/Daten/ver47-interessantes.csv
>   > /home/ben/a.csv
> If I open the resulting file a.csv in Calc, it has only one line. 
> Then instead I tried
> cd /media/Acer/Users/Benjamin/ownCloud/A-UNI/BA-Arbeit.SoSe2014/Daten/ 
> and
> perl -p -e 's/\r\n/,/' ver47-interessantes.csv > a.csv
> The second step
> grep '^Teilnehmer' a.csv > b.csv
> produces an empty file though.
>  





_______________________________________________
Pspp-users mailing list
Pspp-users@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-users

Reply via email to