Search Results

Search: Posts Made By: vx04
953
Posted By vx04
Getting date from file name
Hi All
I am still learning awk, so please pardon me if question sounds stupid enough to ask. :-)


I will have multiple files in a Dir matching a pattern and at end will have date.

e.g.
...
2,881
Posted By vx04
Thanks the awk worked but it split for each...
Thanks the awk worked but it split for each letter ,we need to split for 700 number of letterid
2,881
Posted By vx04
Split xml file into multiple xml based on letterID
Hi All,
We need to split a large xml into multiple valid xml with same header(2lines) and footer(last line) for N number of letterId.
In the example below we have first 2 lines as header and last...
3,697
Posted By vx04
Do I require remote login access to a windows server to transfer files from a UNIX server
Hi All
I need to transfer a file from a UNIX server to a windows server.

I saw that it is possible to do this using scp command by looking at the forum listed below:
...
5,560
Posted By vx04
Thanks all for replying. Our OS is AIX V7.1. ...
Thanks all for replying. Our OS is AIX V7.1.

awk command worked like a charm.
5,560
Posted By vx04
Enter carriage return in xml file after each tag (> sign)
I have an xml file which is generated in a single line an looks like this

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?><Batch_Id="1999996"...
1,899
Posted By vx04
Thanks Dan, it worked like a charm !!! RudyC...
Thanks Dan, it worked like a charm !!!

RudyC
I am using AIX and got syntax error on delete TAIL

:b::)
1,899
Posted By vx04
Yes you are right. Data lines should be like...
Yes you are right.

Data lines should be like this

<rs:data>
<z:First_Name='John Doe' Hospital_Name='XYZ Hospital' Dept_Name='Heart Health' />
<z:First_Name='Jane Doe'...
1,899
Posted By vx04
Removing extra lines from file
I have a file where data looks like this:

===

<?xml version="1.0" encoding="utf-8"?>
<xml xmlns:s='uuid:XYZ'
xmlns:dt='uuid:ABC'
xmlns:rs='urn:schemas-microsoft-com:rowset'
...
2,373
Posted By vx04
Yes, this one works. Thanks a lot, appreciate it....
Yes, this one works. Thanks a lot, appreciate it.

:)

==> cat scr6.ksh
sed -n "/rs:data/,/\\rs:data/{//d; s/[^'=]*=//g; s/''/','/g; s/[^']*$//;p;}" Hospital.xml


==> ./scr6.ksh
'John...
2,373
Posted By vx04
Hi Guys Thanks for taking time to reply. I...
Hi Guys
Thanks for taking time to reply. I wanted to mention that we are using AIX 6.1 and none of the answers seemed to work.

Here is the error I get on each


Input File
==========

...
2,373
Posted By vx04
Need Help in extracting data from XML File
Hi All
My input file is an XML and it has some tags and data rows at end.

Starting of data rows is <rs:data> and ending of data rows is </rs:data>.

Within sample data rows (2 rows) shown...
1,597
Posted By vx04
I tried, tar -cf directory_structure.tar...
I tried,
tar -cf directory_structure.tar $(find /path/to/dir -type d)
and it did not work.

I tried suggestions from other posts and they did not work either

---------- Post updated at 06:03...
1,597
Posted By vx04
How do I create a tar file for only dir and its subdir structures??
How do I create a tar file for only dir and its subdir structures??
3,467
Posted By vx04
Thanks guys. Actually I was running a...
Thanks guys.

Actually I was running a vendor supplied script and it writes output to another location within script. So that is the resaon I was not seening any output.

I tested with simple...
3,467
Posted By vx04
How do I send output of a background process to a file other than nohup.out?
I have a question.

I will be running a background process using nohup and & command at end. I want to send output to a file say myprocess.out.

So will this command work?

nohup...
3,444
Posted By vx04
We are getting file from another team, so don't...
We are getting file from another team, so don't have control over the file.
3,444
Posted By vx04
Stripping double quotes from front and end of a line
I have a file and some records may contain double quotes at beginning and at end of line. So how do I strip them?

For Example, file is somethings like this

Field1;Field2;Field3...
Showing results 1 to 18 of 18

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