There are some 40 files created by accident with filenames with semicolons, as well as other non-printable characters. I can not find a correct way to delete them. This is what I tried:
bash-2.03# ls bad|head -1
000025;001;1377795616;
bash-2.03# rm "bad/000025;001;1377795616;???"
rm:... (17 Replies)
Hi Gurus!
Example file:
1;AAA;BBB
2;CCC;DDD
We want to replace semicolons to tabulators.
Like this:
1 AAA BBB
2 CCC DDD
We have tried these codes.
With PERL:
#!/bin/bash
for i in `find /folder1/ -name "*.CSV"`
do
bi="`basename $i awk -F"." {'print $1'}`"
cat... (2 Replies)
Hello,
I'm trying to remove an arbitrary number of semicolons at the end of each line in the input file.
Input:
44;I;1000031;;;B;0137;0;;01.02.2008;03.02.2009;;;;;;;;;;;;;0028-101746;;;
45;I;1000031;;;B;0137;0;;01.02.2008;03.02.2009;;;;;;;;;;;;;0028-101746;;;;;
... (6 Replies)
I have logs which is having strings like below,
errorMsg;;
errorMsg;bad input;
so I need to grep from logs file which searches for errorMsg followed by semicolon followed by any text and then ending again with semicolon.
More importantly, I should not get errorMsg and having nothing... (4 Replies)