Search Results

Search: Posts Made By: Nevergivup
2,397
Posted By Nevergivup
Thanks for your help on this. Now i have a new...
Thanks for your help on this. Now i have a new requirement as mentioned below:

I have a CSV with below values

name,city,2,country
name,city,15,country
abc,wq,10,afdfd,
qeqe,ewqre,1,wqew...
2,397
Posted By Nevergivup
Hi Askshay , Below is my code: ...
Hi Askshay ,

Below is my code:


#!/bin/sh
#
SortOutput $OutputCSV $abc

function SortOutput
{
awk -F, '$6 < 60 {exit}1' <(sort -t, -nk3,3 $1) >>$2
}
2,397
Posted By Nevergivup
Hi Akshay , I'm getting the below error ...
Hi Akshay ,

I'm getting the below error

syntax error near unexpected token `('
` awk -F, '$6 < 60 {exit}1' <(sort -t, -nk3,3 $1) >>$2'
2,397
Posted By Nevergivup
Hi , Thanks for the reply. The command works...
Hi ,

Thanks for the reply. The command works when i run it separately. but when i put it in a function call like below it gives error:

function SortOutput
{
ResultCSV=$1...
2,397
Posted By Nevergivup
Sort and list values from CSV
I have a CSV with below values

name,city,2,country
name,city,15,country
abc,wq,10,afdfd,
qeqe,ewqre,1,wqew

I need to sort them in ascending order based on the value of column 3 and then ,...
867
Posted By Nevergivup
Building a complex xml using awk
Hi I have a complex xml to be build using awk using a lookup file values. Below is the xml

<country name="xyz">

<state name="abc">

<city name="qwe" capital="yes"/>
<city name="asd"...
2,047
Posted By Nevergivup
Extracting substrings from a string of variable length
I have a string like
Months=jan feb mar april x y ..
Here the number of fields in Months is not definite
I need to extract each field in the Months string and pass it to awk . Don't want to use...
9,444
Posted By Nevergivup
The code worked perfectly. However now i have a...
The code worked perfectly. However now i have a new requirement . the value of a particular tag is dynamic . How do i incorporate pattern matchin for a variable in the same code.

my new xml is ...
9,444
Posted By Nevergivup
How to add Xml tags to an existing xml using shell or awk?
Hi ,

I have a below xml:
<ns:Body>
<ns:result>
<Date Month="June" Day="Monday:/>
</ns:result>
</ns:Body>


i have a lookup abc.txtt text file with below details
Month June July August...
3,640
Posted By Nevergivup
Here is my script : #!/bin/ksh # # Start of...
Here is my script :
#!/bin/ksh
#
# Start of main processing
#
echo "enter String One";
read SearchString1
echo "Enter String two";
read SearchString2
echo $SearchString1
for i in `cat...
3,640
Posted By Nevergivup
Hi Thanks for the reply . I'm facing a new...
Hi Thanks for the reply .
I'm facing a new problem .
In the below snippet :

echo "enter search string"
read Searchstring

the searchstring is a date of format Sep 29 00:00:10 . when i'm...
3,640
Posted By Nevergivup
Script to check logs
I have 5 log files under different directores . say for eg abc under /home/dir1 , xyz under home/dir2 . is there a script that i can run from say /home that searchers all these files for string or...
Showing results 1 to 12 of 12

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