I have large file 1.txt containing:
User: Test1
Password: P@sawFia1_f
User: Test2
Password: C99vijJiDB9fo@K!!1
I'm using sed -i '/\nPassword/ s///g' 1.txt for remove new line with Password: but it's not removing it. Why? The final output needs to be:
User: Test1;P@sawFia1_f
User: Test2;C99vijJiDB9fo@K!!1