I would like get this string line
AUGUSTYN|Stanisław|3589238
without | and :
I tried something like that:
cat baza|grep "AUGUSTYN" -n|awk -F '|' '{print $1,$2,$3,$4}'`
(baza is my file with text, and AUGUSTYN is the name of person)
Result of this command is:
1:AUGUSTYN Stanisław 3589238
As you see there still this pipe :( And I would like to get this:
1 AUGUSTYN Stanisław 3589238
I take text from this base file:
AUGUSTYN|Stanisław|3589238
BARAN|Stanisław|3511477
BUCZEK|Marek|3511526
CABAJ|Wanda|3511483
CEPAK|Józef|3511067
Getting strings without | and : would be great but I will have to get the number of line where this text is stored. So I had to use grep. If you can find any other more obvious solution for this too It would be mega great.
How can I archieve it? I started it learning an hour ago this awk. Please help.
-F '[|:]'. That removes both pipes and semi colons.