Search Results

Search: Posts Made By: grep01
2,501
Posted By grep01
>What OS are you using? aix 5.3 using ksh
>What OS are you using?
aix 5.3
using ksh
2,501
Posted By grep01
thnx so much!, for some reason i needed to...
thnx so much!,

for some reason i needed to adjust it to this:
echo "11111*X*005010X279E~ST*270*1111111*005010X279~BHT*0011*11" | sed 's/.*\(005010X[0-9][0-9][0-9][A-Za-z]\).*$/\1/'
2,501
Posted By grep01
sed regular expression help
please consider this:

echo "11111*X*005010X279~ST*270*1111111*005010X279~BHT*0011*11" | sed 's/.*\(005010X(\d)(\d)(\d)[A-Za-z]*\).*$/\1/'i'm searching for first occurrence of 005010X [digit]...
4,668
Posted By grep01
right on!! thnx, that one did it. It works like...
right on!! thnx, that one did it. It works like a charm.
4,668
Posted By grep01
thnx guys, I appreciate it. now for one of...
thnx guys, I appreciate it.

now for one of the if-statements I have down the code...

what type of construct would help me get only these 4 file ext variants?
*.270
*.276
*.270.txt...
4,668
Posted By grep01
Shell script regex help: accept only 3 file extensions
This regex is supposed to accept files with extensions 270, 276, and "txt" only. Everything else should be discarded.

This is what I have. I'll spare you the rest of the code.

[..]
ext...
Showing results 1 to 6 of 6

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