Search Results

Search: Posts Made By: FuzzyNips
6,753
Posted By FuzzyNips
Ok I got it working finally! # Checks for...
Ok I got it working finally!


# Checks for valid argument
echo $1 | egrep -s "(^[\+]?[0-9]+$)|(^[-]?[0-9]+$)"

# If argument is valid then return its value
# Exits program with return code of...
6,753
Posted By FuzzyNips
Egrep Help
I'm writing a small script thats purpose is to validate a single command line argument to make sure it is an integer. Also acceptable are a leading "+" or "-", but no more than one.

Example: ...
2,686
Posted By FuzzyNips
I wanted to say thanks to both of you. After...
I wanted to say thanks to both of you. After reading moxxx68's post I stuck with it and got things working correctly. Zazzybob, I just looked over your post and mine looks really similar to yours...
2,686
Posted By FuzzyNips
Need Help With My First Borne Shell Program
I'm working on writing my very first borne shell program and I need some help. I think I'm pretty close to having this correct but I may be off. I think my actual program is coded correctly but the...
4,591
Posted By FuzzyNips
Sed Script/Command Help
I want to write a sed script/command that will delete my comments from a C++ program.

Basically, I need to delete all the "/* random text */" from a file. How do I go about doing this? I've...
Showing results 1 to 5 of 5

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