i have a file from which i need to select those records that match like this.
'3456-8796-0987-2345'
To do is i used simple grep command like this
grep "[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]" > file.txt
Now once i get these records i want to remove the
'-' string from the 19 char field above and the result should like
'3456879609872345'
'3456-8796-0987-2345'
To do is i used simple grep command like this
grep "[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]" > file.txt
Now once i get these records i want to remove the
'-' string from the 19 char field above and the result should like
'3456879609872345'