Search found 41 matches

by santhosh
02 Jun 2016 02:11
Forum: DOS Batch Forum
Topic: split a file based on column
Replies: 0
Views: 7172

split a file based on column

Anyone help me on batch or awk script to give below output. user input in run command as: sh runscript.sh test.xml test.template test.values if any of the three argument not given it should through error like argument missing input file contains test.xml: //##########################################...
by santhosh
31 May 2011 01:26
Forum: DOS Batch Forum
Topic: Substring
Replies: 1
Views: 3079

Substring

Dear Orange/agerman,

i have a doubt is it possible to separate a string in substring in DOS(input file are in .txt format),example
input:-
2323,344429890
41234,454324424252
41241,35433353535
output:-
have to print only first 4 number in second column
3444
4543
3543
Thanks in advance
by santhosh
02 May 2011 22:34
Forum: DOS Batch Forum
Topic: groupby and spliting
Replies: 5
Views: 7293

Re: groupby and spliting

hi dbenham,

Thanks for your response i didnt tested it, but i did in shell scripting its working fine........i will try it and say in DOS.
by santhosh
19 Mar 2011 06:08
Forum: DOS Batch Forum
Topic: groupby and spliting
Replies: 5
Views: 7293

Re: groupby and spliting

no...i want output like that...
by santhosh
17 Mar 2011 03:06
Forum: DOS Batch Forum
Topic: groupby and spliting
Replies: 5
Views: 7293

groupby and spliting

hi, anyone help me out to find this. input file:- date series err count 07 002348 149 [1] 07 002348 254 [1] 07 002348 0 [1] 08 002203 0 [2] 08 002347 0 [2] 08 002347 149 [1] 08 002348 148 [1] 08 002348 149 [2] output:- date series ecount scount 07 002348 5 1 08 002203 0 2 08 002347 1 2 using awk too...
by santhosh
04 Nov 2010 02:25
Forum: DOS Batch Forum
Topic: Automatic login in googlemail
Replies: 1
Views: 3964

Automatic login in googlemail

hi ghost/agerman set a = createobject("wscript.shell") a.run "https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fhl%3Den%26tab%3Dwm%26ui%3Dhtml%26zy%3Dl&bsv=1eic6yu9oa4y3&scc=1&ltmpl...
by santhosh
18 Oct 2010 07:16
Forum: DOS Batch Forum
Topic: compare
Replies: 5
Views: 6713

Re: compare

hi ghost solve it plz :|
by santhosh
15 Oct 2010 00:51
Forum: DOS Batch Forum
Topic: compare
Replies: 5
Views: 6713

Re: compare

sorry ghost ...
u help me ..blank line is coming for me. :cry:
by santhosh
14 Oct 2010 10:24
Forum: DOS Batch Forum
Topic: compare
Replies: 5
Views: 6713

Re: compare

yes ghost ur right...as i am newbie i tried my level best........i will show u wat i done
by santhosh
14 Oct 2010 07:52
Forum: DOS Batch Forum
Topic: compare
Replies: 5
Views: 6713

compare

Hi ghost critical problem for me.can u help me file1.csv GJR10101315511000 145 ,22093165,96734353,250,GJR,UER HPR10101318071200662,57298772,03289112,250,HPR,DLR HPR10101317581100059,57651616,02894754,250,HPR,DLR HRR10101318031000352,02190237,03963371,250,HRR,DLR HRR10101322141200125,02191868,0342698...
by santhosh
07 Oct 2010 07:26
Forum: DOS Batch Forum
Topic: print sequential number
Replies: 2
Views: 4397

Re: print sequential number

Thanks Ghost its working fine.
And i want batch script too.
by santhosh
07 Oct 2010 04:07
Forum: DOS Batch Forum
Topic: find same values(duplicate) or vlookup formula
Replies: 9
Views: 10707

Re: find same values(duplicate) or vlookup formula

yes sorry ghost,
i missed that line
output is :-
sat3,40,98
sat6,40,98
by santhosh
07 Oct 2010 03:53
Forum: DOS Batch Forum
Topic: print sequential number
Replies: 2
Views: 4397

print sequential number

hi help me please. Input file:- ram.csv(it's comma sep) Name NumStart NumEnd Price sat 50 53 6RS ram 74 77 11RS jim 82 83 15RS Output file:- out.txt sat 50 6RS sat 51 6RS sat 52 6RS sat 53 6RS ram 74 11RS ram 75 11RS ram 76 11RS ram 77 11RS jim 82 15RS jim 83 15RS Help me in using batch script and u...
by santhosh
08 Sep 2010 06:24
Forum: DOS Batch Forum
Topic: find same values(duplicate) or vlookup formula
Replies: 9
Views: 10707

Re: find same values(duplicate) or vlookup formula

Thanks ghostmachine.one more doubt. want to compare only 2nd and 3rd column (both column should be equal)example:- File1 contains:- sat,005,87 sat1,09,95 sat3,40,98 sat4,50,99 sat5,40,97 File2 contains:- ggg,010,55 hth,68,95 sat,42,97 sat6,40,98 output should be File3:- sat,40,98 Thanks in advance
by santhosh
08 Sep 2010 01:10
Forum: DOS Batch Forum
Topic: find same values(duplicate) or vlookup formula
Replies: 9
Views: 10707

Re: find same values(duplicate) or vlookup formula

hi ghostmachine,


c:\test> gawk.exe "FNR==NR{a[$1];next}($1 in a)" file1 file2

now i want to print values which is not same.