07-19-2011
Help to Develop a LINUX macro?
Hi Experts,
i would like to get your help to do some development to the below linux commands which i run under .cmd file in windows
@echo off
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999901"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999914"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999955"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999956"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999902"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999936"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999938"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999927"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999954"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999980"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999981"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999903"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999904"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999923"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999977"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999978"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999911"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "9647802999979"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe "NULL"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe -v "96478029999"|f:\linuxutils\grep.exe -v "NULL"|f:\linuxutils\wc.exe -l
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\wc.exe -l
echo -------------------------------------------------------------------------------------
the result for the above is just numbers for the counts it does, i want to:
1- add a string before the number, like x value
2- I want the out put to be directed to one single txt to excel file which is better for me, as i prefer excel for reporting
Thanks in advance.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi people,
I am trying to install a second kernel on my Red Hat 8.0 machine.
the existing kernel is 2.4.18 and I am trying to have 2.4.20.
I already downloaded the source extracted it run make , make dep and make bzImage . Now when trying to copy the installed kernel image from /usr/src to... (4 Replies)
Discussion started by: bashirpopal
4 Replies
2. UNIX for Dummies Questions & Answers
hi! i am Carlos i study @ UABC (Autonomy University of Baja California)...
i have a final project.... i need to make a presentation of the new...
unix develop environment... but... i have some problems with that....
could you tell me something to help me? (0 Replies)
Discussion started by: Nx GT-R
0 Replies
3. Programming
I think there is no problem to use any macro in a new macro definishion, but I have a problem with that.
I can not understand why?
I have a *.mak file that inludes file with many definitions and rules.
##############################################
include dstndflt.mak
...
One of the... (2 Replies)
Discussion started by: alex_5161
2 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I am a beginner in advanced unix and just i finished my course in that so now I want to develop an application using advanced unix concepts and middleware technology, so that i can gain an initial working knowledge. Kindly give me a suggestion of what i can develop. (5 Replies)
Discussion started by: jimmyuk
5 Replies
5. Programming
Hi guys , in my study book from which I re-learn C is task to generate all possible characters combination from numbers entered by the user. I know this algorithm must use combinatorics to calculate all permutations. Problem is how to implement algortihm.
// This program reads the four numbers... (0 Replies)
Discussion started by: solaris_user
0 Replies
6. Programming
I was going through the Linux code, i stuck with few inline assembly language code,
I have tried online but in vain. Any help is much appreciated. Thanks.
/* how to get the thread information struct from C */
static inline struct thread_info *current_thread_info(void)
{
struct... (3 Replies)
Discussion started by: kumaran_5555
3 Replies
7. Shell Programming and Scripting
Hi ,
I would like to do some exercises/scripts in order to develop my skills in shell scripts,
can someone pass me some links/suggestions where i can find this?
Thanks a lot :) (3 Replies)
Discussion started by: prpkrk
3 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
Am good in C & C++, i just joined as a fresher in a French IT company.
In my own interest and love towards Linux and open source. i want to develop as much as applications for linux. i got the basic training on linux commands, and currently am working really hard to gain more... (11 Replies)
Discussion started by: mr_ganapathy
11 Replies