Inscrit le: 07 Nov 2017
Moyenne de points: 1,00
|Posté le: Mer 27 Déc - 07:06 (2017) Sujet du message: Cut command on RHEL 6.8 compatibility issues
We have a lot of scripts using cut as:
cut -c 0-8 --works for cut (GNU coreutils) 5.97, but does not work for cut (GNU coreutils) 8.4.
Gives error -
cut: fields and positions are numbered from 1
Try `cut --help 'for more information.
The position needs to start with an issue.
Is there a way where I can have multiple cut versions installed and use the older version of cut for the user which runs the script?
or any other work around without having to change the scripts?
I did not find the right solution from the Internet.
B2B Marketing Campaign