Skip to main content

In addition to the successful answers already exists. Same thing can be achieved with tr, with the --delete option.

echo "2.3.3" | tr --delete . echo "2.3.3" | tr -d . # for MacOS 

Which will output: 233

In addition to the successful answers already exists. Same thing can be achieved with tr, with the --delete option.

echo "2.3.3" | tr --delete . 

Which will output: 233

In addition to the successful answers already exists. Same thing can be achieved with tr, with the --delete option.

echo "2.3.3" | tr --delete . echo "2.3.3" | tr -d . # for MacOS 

Which will output: 233

added 14 characters in body
Source Link
daz
  • 450
  • 4
  • 6

In addition to the successful answers already exists. Same thing can be achieved with tr, with the --delete option.

<<< echo "2.3.3" | tr --delete . >>> 233 

Which will output: 233

In addition to the successful answers already exists. Same thing can be achieved with tr, with the --delete option.

<<< echo "2.3.3" tr --delete . >>> 233 

In addition to the successful answers already exists. Same thing can be achieved with tr, with the --delete option.

echo "2.3.3" | tr --delete . 

Which will output: 233

added 13 characters in body
Source Link
daz
  • 450
  • 4
  • 6

In addition to the successful answers already exists. Same thing can be achieved with tr, with the --delete option.

<<< echo "2.3.3" tr --delete . >>> 233 

In addition to the successful answers already exists. Same thing can be achieved with tr, with the --delete option.

<<< echo "2.3.3" tr --delete . 

In addition to the successful answers already exists. Same thing can be achieved with tr, with the --delete option.

<<< echo "2.3.3" tr --delete . >>> 233 
Source Link
daz
  • 450
  • 4
  • 6
Loading