Search Results

Search: Posts Made By: noob33
7,506
Posted By noob33
That worked great. Thank you again.
That worked great. Thank you again.
7,506
Posted By noob33
It works! Sorry I put in the script before you...
It works! Sorry I put in the script before you made the changes. I really appreciate your help and it makes perfect sense. Thanks again and I hope this helps somebody else out.
7,506
Posted By noob33
That didnt update the xml file.
That didnt update the xml file.
7,506
Posted By noob33
That worked perfect! It increased the versionCode.
That worked perfect! It increased the versionCode.
7,506
Posted By noob33
It does not seem to be working. I looked in the...
It does not seem to be working. I looked in the vercheck.txt and it shows the version. The only thing is and I am not sure if this makes a difference but it has a lot of spaces:

...
7,506
Posted By noob33
#!/bin/bash file=BuildManifest.xml grep...
#!/bin/bash

file=BuildManifest.xml
grep versionCode $file > vercheck.txt
vercheck=vercheck.txt
increase=increase.txt
read num < "$vercheck"
num=$(echo $num | sed 's/[^0-9]//g')
printf...
7,506
Posted By noob33
Hi Guys, It changed the number. The only problem...
Hi Guys, It changed the number. The only problem and I really apologize for not offering more information at the start is it prints the new # and thats it. I have a file with 10 lines of xml code and...
7,506
Posted By noob33
Here is what I have: #!/bin/bash ...
Here is what I have:
#!/bin/bash

file=BuildManifest.xml
read num < "$file"
printf "%d\n" "versionCode=$(( $versionCode + 1 ))" > "$file"


but I keep getting this error in Terminal...
7,506
Posted By noob33
Hi, Thank You for all the help so far. The...
Hi, Thank You for all the help so far. The problem I am having is getting this number to increment up by 1. I am not sure if its the "" but it does not seem to work correctly.


versionCode="1"...
7,506
Posted By noob33
Increment #'s in text file hourly
I have a text file with a number "001". I am trying to change this number every hour and increment by "1". So every hour it would add +1 to that number. I am able to change the file with sed but...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 07:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy