Search Results

Search: Posts Made By: mkjp2011
1,398
Posted By mkjp2011
The second statement you had does not seem to...
The second statement you had does not seem to work.

I am using it with this statement


echo $test | egrep "^.[-+].{1-3}"


---------- Post updated at 12:38 AM ---------- Previous update was...
1,398
Posted By mkjp2011
Search a String for characters - or +
How would I accomplish this if I want to test to see if it

1) starts with a dash so something like "-R"

AND

2) starts with 1 character then either a "-" or "+" and then up to 3 characters...
9,219
Posted By mkjp2011
Thank You!
Thank you that did the trick! :b:
9,219
Posted By mkjp2011
Problem with Variable and AWK command
Okay, so I am trying to use a count variable to reference the column of output sent from an echo statement. So I am trying to do this


#!/bin/bash
CURRENT=$PWD
VAR=3
CHANGE=`echo $CURRENT |...
Showing results 1 to 4 of 4

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