Quote:
Originally Posted by
Aditya_001
Nope the above command as well is not working
As far as feedback goes, that's as useless as it gets. Please, in the future, when members are trying to help you, the least you can do is provide specific details.
The
cut command is a standard and widely available utility. I did not use any non-standard extensions. Given the sample input that you provided in post #3, it produces the desired output. So, exactly how does it fail to meet your requirements? Show us some data on which it fails. Show us the output it generates on your system (while you're at it, tell us which operating system and shell you're using). And show us the desired output for that data.
Quote:
Originally Posted by
alister
If that doesn't apply, then you need to do a better job of specifying your data.
You have done a very poor job of specifying your data. It looks like it's pipe-delimited, but you want to remove a pipe. If it is pipe-delimited, that will alter the number of fields in each record. Do all records have the same number of fields? Is there some constant that can be used as a key? Your sample data and your textual description implies that the target to be replaced is preceded by a constant string ...
Quote:
Originally Posted by
Aditya_001
In input file after the |HA4 9BZ| we have || and that needs to be replaced with | through out the file:
... but I suspect that may not be accurate.
Take a moment to put yourself in an ignorant mindset. We are not at all familiar with your data nor with what you are trying to accomplish. Whatever it is, it is likely not a difficult task and the only reason that this thread has gone on as long as it has is because you have not done a good job of helping us help you.
Regards,
Alister