Search Results

Search: Posts Made By: DKNUCKLES
8,296
Posted By DKNUCKLES
awk - arithemetic functions with external variables
I'm trying to get awk to do arithmetic functions with external variables and I'm getting an error that I cannot figure out how to fix.

Insight would be appreciated


money=$1
...
2,501
Posted By DKNUCKLES
Coding on my Mac
I would like to start coding on my mac, but I'm getting an error when I attempt to execute my script

-bash : testscript: command not found

I have verified that the #! line points to the correct...
1,559
Posted By DKNUCKLES
Nevermind, I got the answer...had a brain fart ...
Nevermind, I got the answer...had a brain fart

Thanks for your help :)
1,559
Posted By DKNUCKLES
how would that translate into the bash shell? ...
how would that translate into the bash shell?

i guess i should have mentioned thats what im coding in
1,559
Posted By DKNUCKLES
Finding input within a script
I need to find the amount of information entered from within my script and I'm a bit stumped.

If the information was entered from the command line I could easily use the $# feature.

I figure I...
3,424
Posted By DKNUCKLES
removed...
removed...
44,167
Posted By DKNUCKLES
Finding number ranges using grep
Is it possible for me to find numbers in a file by a range using grep?

like
cat data | cut -f1 | grep <info>

Im trying to find information and extract every amount that is less than a number...
1,639
Posted By DKNUCKLES
Would that work for leap years as well?
Would that work for leap years as well?
1,639
Posted By DKNUCKLES
Date Question
How could I get a date's day of the week (ie Sunday) without using the date -d command?

So if a date was specified, it would give me the day of the week.

The date -d command looks something...
2,179
Posted By DKNUCKLES
While Do Loops Problems
So i'm coding this loop for a class I have. I think it goes without saying that I don't have much experience with this. This loops is supposed to check the input entered by the user. If it's entered...
11,209
Posted By DKNUCKLES
Checking for future / non existent dates
'm attempting to script an application for the bash shell. The application needs to check for birthday, but must check the birthday to see if the date is a) in the future b) exists at all (ie Feb...
Showing results 1 to 11 of 11

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