10 More Discussions You Might Find Interesting
1. Programming
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Discussion started by: jessy83
1 Replies
2. Shell Programming and Scripting
Could anyone of you please guide me on making correct regular expression to match the exact word or character
I have some numbers like 12345780 extn 1234
1234567 x 43545
13245678 Extn 454857
if * ]]; then
VAR3=`echo "$NUMBER" | nawk -F "*" '{print $1 $2}'`
... (4 Replies)
Discussion started by: nram_krishna@ya
4 Replies
3. Shell Programming and Scripting
<ATTR name="ABCDEFGH" value=""/>
<ATTR name="HJYR" value=""/>
what would be the regular expression to match both the above strings...
Always end with value=""/>
always start with <ATTR name="
the ATTR name can be anything..
I need to use this with match() in awk.
Thanks.. (1 Reply)
Discussion started by: shekhar2010us
1 Replies
4. Shell Programming and Scripting
I have a flat tab delimited file of the following format
1 A:23 A:45 A:789
2 A:2 A:47
3 A:78 A:345 A:9 A:10
4 A:34 A:98
I want to modify the file to the following format with insertions of "//" in between
1 A:23 // A:45 // A:789
2 A:2 // A:47
3 A:78 // A:345 // A:9 // A:10
4 A:34... (7 Replies)
Discussion started by: Lucky Ali
7 Replies
5. Shell Programming and Scripting
can someone let me know what this means in english.
\(abcd\)
\ is an escape key right?
Thanks
Also im getting confused with something like it
does this mean any single character?
and this would be 2 characters ?
Just let me know if im on the right track. (5 Replies)
Discussion started by: syco__
5 Replies
6. Shell Programming and Scripting
Good day!
I'll say right away that I'm not good at regular expressions. I'm very much so still learning them and I wasn't sure if this was technically an emergency to post in the emergency forum.
I have a task at work here that requires me to insert a string after matching another string... (8 Replies)
Discussion started by: jtollefson
8 Replies
7. Shell Programming and Scripting
Hi,
Could anybody explain why will evaluate to true for a string that is not null, not empty string, and has at least one non-space char?
My understanding is that ^ means exclude all chars inside . So I thought it should mean anything except space.
This seems a big mystery to me. (9 Replies)
Discussion started by: iengca
9 Replies
8. Linux
Regular expression to extract "y" from "abc/x.y.z" (2 Replies)
Discussion started by: rag84dec
2 Replies
9. UNIX for Dummies Questions & Answers
how to find for a file whose name has all characters in uppercase after 'project'?
I tried this:
find . -name 'project**.pdf'
./projectABC.pdf
./projectABC123.pdf
I want only ./projectABC.pdf
What is the regular expression that correponds to "all characters are capital"?
thanks (8 Replies)
Discussion started by: melanie_pfefer
8 Replies
10. Shell Programming and Scripting
Hello All!
I have a file thats something like this: ( a grep output)
/path/of/file/filename.abc.xyz.pqr:! Commented text
/path/of/file/filename.abc.xyz: ! More Commented text
I need to grep out those line from this file whose filename has ".abc" in the filename (anywhere in filename)... (3 Replies)
Discussion started by: ag79
3 Replies