Search Results

Search: Posts Made By: IshuGupta
2,548
Posted By Corona688
Check the return value of the copy command. It...
Check the return value of the copy command. It will tell you when it's unsuccessful.
2,548
Posted By achenle
If he's using Python, I'd think just catching any...
If he's using Python, I'd think just catching any exception from copyfile() should suffice.

No exception? It worked.
2,548
Posted By Corona688
Providing nothing else caught any exceptions...
Providing nothing else caught any exceptions inside it, yes.
2,280
Posted By Corona688
Your "XML" looks like a bunch of individual,...
Your "XML" looks like a bunch of individual, separate XML files slapped together into one. Does the <?xml nonsense really need to be preserved?

Have you tried his suggestion? Does it work?
2,280
Posted By Corona688
A modification of the smallest XML parser I have:...
A modification of the smallest XML parser I have:

BEGIN {
FS=">"
OFS=">"
RS="<"
}

NR==1 { next } # The first "line" is blank when RS=<

/^[!?]/ { printf("%s", RS...
7,847
Posted By Aia
Sorry! I recognize I did not look hard enough to...
Sorry! I recognize I did not look hard enough to what you wanted and I based my answer on your first post.


Trying to reuse your code. I haven't test it.
#!/bin/bash

find...
4,152
Posted By Aia
filepath="/splunk/scrubbed/rebate/IFIND.REBTE.WROC...
filepath="/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt"
echo ${filepath##*/}

---------- Post updated at 04:50 PM ---------- Previous update was at 04:46 PM ----------

while read f; do echo...
4,152
Posted By Aia
## (2#) to match as much of the pattern (in this...
## (2#) to match as much of the pattern (in this case */) and strip it, starting from the beginning
There are also:
# (1#) same that ## except that it will match as less as possible (no greedy)
...
Showing results 1 to 8 of 8

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