Search Results

Search: Posts Made By: Jassz
1,440
Posted By Jassz
How to split a data assigned to a variable
The requirement is, there is a log file which contains a huge data. i need to get a particular field out of it by searching with another field.

ex:

2011-03-28 13:00:07,423 [http-8080-9] :...
Forum: UNIX and Linux Applications 03-02-2011
5,814
Posted By Jassz
Move Files From One Folder To Another In UNIX
There are around 13 files in folder1.I need to move these files to another folder folder2,one file at a time, after checking whether a file exists in another folder folder3.

If a file exists in...
5,352
Posted By Jassz
awk '{print $0}' input.xml gives the whole text...
awk '{print $0}' input.xml gives the whole text in a single line. Hence i guess none of the above codes are working!:wall:
3,951
Posted By Jassz
search-word-print-specific-string
Hi,
Our input xml looks like:

<doc>
<str name="account_id">1111</str>
<str name="prd_id">DHEP155EK</str>
</doc>
- <doc>
<str name="account_id">6666</str>
<str...
5,352
Posted By Jassz
search-word-print-specific-string
Thanks Pravin. But we still get the entire xml.
Our input xml looks like:
<doc>
<str name="account_id">1111</str>

<str name="prd_id">DHEP155EK</str>

</doc>


-...
5,352
Posted By Jassz
How to get a field from an XML?
We have an input XML of the following form
<item>
<account>1234</account>
<id>345</id>
</item>

How do we get the value of <account> tag (1234) using UNIX ?
4,660
Posted By Jassz
How to split a csv file and zip it and attach using mutt command?
We need to redirect the output of a query to .csv file each containing a specified number of lines.Then we should zip these files and send as attachment using mutt command.

We tried using
...
26,136
Posted By Jassz
Solved!
mutt -s "Subject:`date +"%b %d"` " -a $tmp/BusinessReport_* -- email@abc.com < message_body


This attaches all files starting with the name BusinessReport_
26,136
Posted By Jassz
How to attach multiple .csv files using mutt command
I need to attach all files starting with 'BusinessReport' using mutt command.

It could be any number of files in that directory, say BusinessReport_01, BusinessReport_03, BusinessReport_04 etc.
...
1,341
Posted By Jassz
How to write result of a query to more than 1 .csv
If the result of the query is greater than say, 50,000 then the next 50,000 should be written to the second file and so on. Is it possible?
3,032
Posted By Jassz
Thanks Rohon. we made the changes in tr and used...
Thanks Rohon. we made the changes in tr and used awk to use the same delimiter itself. Also IF condition needed a ". Code for only the first condition was:

cat inputFile | while read line
do
...
3,032
Posted By Jassz
How to search for a word in a particular column of a file
How to search for a word like "computer" in a column (eg: 4th field) of a '***' delimited file and add a column at the end of the record which denotes 'Y' if present and 'N' if not. After this, we...
Showing results 1 to 12 of 12

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