<quote who="Bernhard L?der">

> sed 's/BLUN/,BLUN/g' file1 | sed 's/^\([^,]*\),[^,]*,/\1,,/' | sed
> 's/BLUN/,BLUN/g' | sed 's/,,/,/g' | sed 's/,161/,,161/g' | sed
> 's/^\([^,]*\),[^,]*,/\1,,/' | sed 's/,,//g' | sed
> 's/^\([^,]*\),[^,]*,/\1,,/' | sed 's/,,/,/g' | sed
> 's/^\([^,]*\),[^,]*,/\1,,/' | sed 's/,,/,/g' | sed
> 's/^\([^,]*\),[^,]*,/\1,,/' | sed 's/,,/,/g' | sed
> 's/^\([^,]*\),[^,]*,/\1,,/' | sed 's/,,/,/g' > file2

Ahem.

No comment.

> I am now faced with a linebreak, which I have to convert to a comma. What
> would I have to do?

tr '\n' ','

- Jeff

-- 
   "I don't know whose brain child it was, but it's quite an ugly child,"   
                                  he said.                                  
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to