Search Results

Search: Posts Made By: TasosARISFC
12,321
Posted By TasosARISFC
:D that did the trick... thank you very much...
:D that did the trick... thank you very much CarloM
12,321
Posted By TasosARISFC
sadly -samefile is not recognized on AIX
sadly -samefile is not recognized on AIX
12,321
Posted By TasosARISFC
Thanks for your reply Carlom it seems to...
Thanks for your reply Carlom

it seems to work fine, though it now causes a new problem

-print (or even just find) returns the folders as well as the parent path
for examble if I have Oct2010...
12,321
Posted By TasosARISFC
Hi all thank you for your replies I...
Hi all thank you for your replies

I understand what the problem is
However both ways create an archive named "{}.tar.gz" or "{}.zipped"
also -z is not recognized as a perameter ( I use AIX )
I...
2,219
Posted By TasosARISFC
Hi, try this echo " \"this\", \"is\",...
Hi, try this

echo " \"this\", \"is\", \"a\", \"test\", \"line\" "
12,321
Posted By TasosARISFC
Find and Tar a Folder
Hi all,

I have created a function that looks for a folder in a particular directory, checks the date it was last modified and if its old then compress it.
This works fine for files using gzip....
10,699
Posted By TasosARISFC
Hi Corona, thank you for your effort. As in your...
Hi Corona, thank you for your effort. As in your example what this did was to create a list of <ID> 0000000</ID> removing all other tags, but still with duplicates.

I thought of sorting and use...
10,699
Posted By TasosARISFC
Hi, sadly I have no XSLT processor nor can I...
Hi, sadly I have no XSLT processor nor can I install one as my machine is restricted

---------- Post updated at 03:57 PM ---------- Previous update was at 03:53 PM ----------

Is there a way...
10,699
Posted By TasosARISFC
Duplicates in an XML file
Hi All,

I have an xml file that contains information like this


<ID>574922<COMMENT>TEXT
TEXT
TEXT</COMMENT></ID>
<ID>574922<COMMENT>TEXT
TEXT
TEXT</COMMENT></ID>...
1,392
Posted By TasosARISFC
Had a missing } at the end but worked like a...
Had a missing } at the end but worked like a charm! Thank you very much


for the record I also tried

sed -n '/inID="/,/" /p' $line


but with no luck

nevertheless many thanks again
1,392
Posted By TasosARISFC
<?xml version="1.0" encoding="UTF-8"?> <Header>...
<?xml version="1.0" encoding="UTF-8"?>
<Header>
<From>
<Credential
domain="ID">
<Identity>680</Identity>

</Credential>

</From>
<To>
...
1,392
Posted By TasosARISFC
Find word in file then get following characters
Hello,

I have several xml files from which I want to find and return a particular string
I want to locate the InId="00000008". Now that is inlcuded within a tag and ofcourse the number is...
2,011
Posted By TasosARISFC
Thank you for your replies. The perl script...
Thank you for your replies. The perl script worked like a charm. Thank you very much
2,011
Posted By TasosARISFC
Deletion of last Empty paragraph
Hello,

I hava a file resulting from a script which ends as follows:


172|18|FOOTER|DISCLOSURE||16¶
173|0|FOOTER|FILE||18¶


note the paragraph signs are only placed to demonstrate the...
11,700
Posted By TasosARISFC
Ok found it heres the code that works as I want...
Ok found it
heres the code that works as I want


rm temp3
var1=$(cat myFile | wc -l)
echo $var1

awk -F"|" -v v="$var1" -v c=0 ' $1==v{$2=0;print >>"temp3" ; prev=c ; c=c+1 ;next} {print...
11,700
Posted By TasosARISFC
sadly I am not on solaris... I am...
sadly I am not on solaris...


I am bumbed now, it keeps changing everything to 0 now...

This should be very simple, just go to the last line, change the second field to 0 save file, end of...
11,700
Posted By TasosARISFC
you got me very confused here... this what...
you got me very confused here...

this what I tried after your reply:


var1=$(cat myFile| wc -l)
echo $var1

awk -F"|" -v v="$var1" ' $1=v {$2=0; print >> "myFile"}' myFile



I...
11,700
Posted By TasosARISFC
Sadly the awk way still returns empty so i...
Sadly the awk way still returns empty
so i tried this:


var1=$(cat myFile | wc -l)
echo $var1

awk -F"|" '$1==var1 {$2=0; print >> "myFile"}' OFS="|" myFile



now I know that I...
11,700
Posted By TasosARISFC
awk print last line returns empty string
hello

I have a file with lines of info separated with "|"

I want to amend the second field of the last line, using AWK
my problem is with geting awk to return the last line

this is what...
4,696
Posted By TasosARISFC
Thank you for you reply, I was using the original...
Thank you for you reply, I was using the original code inside {stuff} , I did not take it literrally :P

The code above works, but not as I wanted, my code previously was explicity maching the...
4,696
Posted By TasosARISFC
Sadly the above did not work, the awk command was...
Sadly the above did not work, the awk command was not executed at all or it replaces the amended file with the original again
4,696
Posted By TasosARISFC
sort it, print > "file" worked, for some reason...
sort it, print > "file" worked, for some reason it did not before, i just deleted the script and wrote it again and it worked.

thanks anyway

---------- Post updated at 04:20 PM ----------...
4,696
Posted By TasosARISFC
Awk print to file problem
Hello,

I have a file seperated with "|" I want to search the 11th field if it matches certain words change it to an empty space.

I have managed to do that, but now I need it to replace the...
3,760
Posted By TasosARISFC
This worked like a charm, I amended the prints...
This worked like a charm,
I amended the prints to append to a temp file

Thanks to everyone for your help
3,760
Posted By TasosARISFC
Tha did not work, it jsut replaced all the...
Tha did not work, it jsut replaced all the numbers to 0 :wall:
I don't just need to sort the second field, I need to number it incrementing by 1 each time in the 3rd field there is a "HEADER"

so...
Showing results 1 to 25 of 27

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