I am trying to get the contents of a txt file "usernum.txt", get the contents, add one to that number, and replace the current number with the new one. Here is what I have so far
#!/bin/sh ID=0 cat ''$pwd'usernum.txt' >> $ID count1=1 IDB=$(($ID+$count1)) rm "usernum.txt" touch "usernum.txt" echo $IDB >> usernum.txt It runs but when I open the file, it stays the same. Any ideas? Thanks, Mike