Search Results

Search: Posts Made By: chagan02
4,941
Posted By chagan02
Adding 48 hours to DateTime
Hey Guys,

I have looked for a solution throughout the forum for my particular question, but I cant find one. So I'm sorry if I overlooked it. I need to be able to 48 add hours to a particular...
4,201
Posted By chagan02
How to check for a Numeric Value?
Using shell,

I have a variable, how can I check that variable for a numeric value such as "41.0"? My program needs to do one things if the numeric value is found, and another if something else...
4,544
Posted By chagan02
Ok. I'm just gonna lay it out there for ya. I'm...
Ok. I'm just gonna lay it out there for ya. I'm not the best coder (obviously but here is what I have. Code is below.

#!/bin/sh
n=$(cat $fipslist | wc -l)
i=1
for ((i; i<n+1; i++))
do
...
4,544
Posted By chagan02
OK. Does the x in -vx represent the variable x? ...
OK. Does the x in -vx represent the variable x? Is the $x the only time the variable is referenced?

Also. How would I do this in a loop. The script has to parse through the file appending if...
4,544
Posted By chagan02
Can it be a variable? Like $x
Can it be a variable? Like $x
4,544
Posted By chagan02
How to change last character in string with a variable value.
Hey Guys,

I have text such as this.
28003,ALCORN,2
28009,BENTON,2
28013,CALHOUN,2
28017,CHICKASAW,2
47017,CARROLL,2
05021,CLAY,0


The last digit after the final "," is a variable value. ...
1,193
Posted By chagan02
Thanks Man! Works like a charm.
Thanks Man! Works like a charm.
1,193
Posted By chagan02
Need help with shell, trying to append or separate values in a string
Ok. I for the life of me cant figure out how to do this. I need Help. So here is what I'm trying to do. I have a block of text. They are FIPS codes for counties. Below is the block. There are...
Showing results 1 to 8 of 8

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