Author Topic: bash sum number with -sd+ and bc command  (Read 5498 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2148
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
bash sum number with -sd+ and bc command
« on: กุมภาพันธ์ 08, 2025, 09:10:44 pm »
##start to run script
cat sum.txt | awk -F/ '{print $NF}' | awk '{print $2}' |sed 's/,//g' | paste -sd+ | bc