Company: Intuit_26nov
Difficulty: medium
Problem Description Write a Bash script that reads a sequence of strings and calculates the sum of all strictly numeric values. A string is considered numeric if it consists entirely of digits (with an optional leading + or - sign). Strings containing a mix of digits and non-digit characters (e.g., 3rd or Efg231 ) must be ignored. If there are no strictly numeric values in the input, the script must output 0 . Input The input is read from standard input ( stdin ). It consists of multiple lines of text, where each line represents a single string element. Empty lines should be ignored. Output Print a single integer to standard output ( stdout ) representing the sum of all purely numeric lines. The output must end with a newline. Environment / File Setup The solution will be executed in a standard Bash shell environment. No external files are required. Constraints or Notes The total sum will not exceed 7,000,000. Input values that are strictly numeric will fit within standard 64-bit signe