Search Results

Search: Posts Made By: zaq1xsw2
1,875
Posted By zaq1xsw2
Thanks for your response.. But awk is mandatory...
Thanks for your response.. But awk is mandatory in my case.. is there a possibility in awk?

---------- Post updated at 10:54 AM ---------- Previous update was at 10:51 AM ----------

also what...
1,875
Posted By zaq1xsw2
Many option i tried with different combination....
Many option i tried with different combination. Tried with multiple delimeter option also.. but no luck:(
1,875
Posted By zaq1xsw2
awk facing delimiter inside data
Inpu file is as below:

CMEOPT1_dump.1:1002 ZN:VTJ3J3C131
CMEOPT1_dump.1:1002 ZN:VTM4M4P123%5
CMEOPT1_dump.1:1002 ZN:VTM3M3P132%5
CMEOPT1_dump.2:1002 OZNG4
CMEOPT2_dump.3:1002 ZB:VTH4H4C132...
10,232
Posted By zaq1xsw2
This is done.. Thanks Everybody for your helps
This is done.. Thanks Everybody for your helps
10,232
Posted By zaq1xsw2
That is nice and quick.. Thanks.. i am using the...
That is nice and quick.. Thanks.. i am using the below command on my csv file
awk -F "," 'OFS="," {$a="";$b=""} 1' a=$m b=$n output.csv

the output is like below......
10,232
Posted By zaq1xsw2
How to remove mth and nth column from a file?
Hi,

i need to remove mth and nth column from a csv file. here m and n is not a specific number. it is a variable

ex.

m=2
n=5

now i need to remove the 2nd and 5th line.. Please help...
1,176
Posted By zaq1xsw2
Not Working... :( $> awk -F,...
Not Working... :(

$> awk -F, 'NR==1{for(i=2;i<=NF;i++) d[i]=$i;print "COMPUTERNAME,DATE"}NR>1{for (i=2;i<=NF;i++) if ($i==0) print $1","d[i]}' /tmp/image.csv
COMPUTERNAME,DATE
$>
1,176
Posted By zaq1xsw2
Need help on filtering
Hi experts,

I have a file image.csv as below:

COMPUTERNAME,23/07/2013,22/07/2013,21/07/2013,20/07/2013,19/07/2013,18/07/2013,17/07/2013
AED03852180,3,3,3,3,3,3,3
AED03852181,3,3,3,3,3,3,1...
1,778
Posted By zaq1xsw2
yes.. That i know.. but how to avoid this prob?
yes.. That i know.. but how to avoid this prob?
1,778
Posted By zaq1xsw2
[Solved] Strange Problem in case statement while shift
Hi,

Here is my code as below:

test.ksh:
=======

#!/bin/ksh
option="${1}"
while [ $# -gt 0 ]
do
case $1 in
-f) FILE="${2}"
echo "File name is $FILE"
;;
-d)...
1,253
Posted By zaq1xsw2
tooo good.. Thanks much
tooo good.. Thanks much
1,253
Posted By zaq1xsw2
Need Urgent Help from UNIX gurus to get specific data from a file
Hi,

I have a file monitor.txt as below...


# Times are converted to local time from GMT.
# Local Timezone: EST (GMT -05:00)

PARAM1
{
TIME 30;
CC1 "xxxxx";
CC2 ...
Showing results 1 to 12 of 12

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