Answers for "linux add line numbers to file"

1

how to add numbers in linux command line shell

clear
echo Enter 1st number
read a
echo Enter 2nd number
read b
sum=$(( $a + $b ))
 
echo "Sum is: $sum"
Posted by: Guest on September-21-2021
0

how to add line number to a file

nl yourfile.txt > new.txt
Posted by: Guest on October-29-2021

Code answers related to "linux add line numbers to file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language