[Solved] execution problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers [Solved] execution problem
# 1  
Old 01-12-2012
Java [Solved] execution problem

Hi

I want to make a script . In this script i want to use input file and this input file consist of three numbers in a line

for example input file is as below:

919876543210 09876543234567876 98764534245678 aircelmms","aircelweb","aircelwap"


096574235625 14124144144455555 14555555555555
aircelmms","aircelwebpost","aircelwappost"..............


....................and so on




in each line first number is MSISDN second number is IMSI and third one is IMEI and last one is APN



and i want to use these three numbers as input for following command which will execute automatically :


Code:
 CREATE:DCRSUB:MSISDN,input file number :IMSI,input file number:IMEI,input file number:APN_LIST,"aircelmms","aircelweb","aircelwap";

Moderator's Comments:
Mod Comment Please use next time code tags

Last edited by vbe; 01-12-2012 at 08:36 AM..
# 2  
Old 01-12-2012
Taking first line as input .. If input file varies, provide us some more samples ..
Code:
$ nawk '{print "CREATE:DCRSUB:MSISDN,"$1":IMSI,"$2":IMEI,"$3":APN_LIST,\""$4";"}' infile

# 3  
Old 01-12-2012
thnks a lot for ur support it works
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[Solved] Korn Shell execution

There are two Korn Shell scripts : script_1.ksh ( located in /home/dir1 ) script_2.ksh ( located in /home/dir2 ) Content of script_2.ksh is #!/usr/bin/ksh echo "Hello world.." The script_2.ksh is called from within script_1.ksh using the following command : ./home/dir2/script_2.ksh but... (7 Replies)
Discussion started by: kumarjt
7 Replies

2. Shell Programming and Scripting

[Solved] Command execution in Makefile

Linux Gurus, I have a query regarding the execution of a complex command in the makefile of the current system. I am currently using shell command in the makefile to execute the command. However my command fails as it is a combination of a many commands and execution collects a huge data...... (4 Replies)
Discussion started by: satishkumar432
4 Replies

3. UNIX for Dummies Questions & Answers

Execution problem

How to search a pattern from multiple files... i used the command suppose the pattern name is xxx grep xxx (file1-o- file2-o- file3) Thanks in advance (4 Replies)
Discussion started by: ksakil
4 Replies

4. Shell Programming and Scripting

Execution problem

Hi, I have been trying to run a simple script CONFIG_FILE="/jay/check" . . . for i in `cat $CONFIG_FILE` do loc=`echo $i | cut -d "|" -f2` var=$(find $loc -mtime -1|wc -l) if then echo $loc has files older than 1 day fi done . . . (2 Replies)
Discussion started by: jayii
2 Replies

5. Shell Programming and Scripting

Execution problem

hi all, when i tried executing the script by giving following command $ sh test.sh <parameter> it shows the following output: <none> status code=0 Previously it was working fine.But now its showing this output. (1 Reply)
Discussion started by: sanjay mn
1 Replies

6. UNIX for Dummies Questions & Answers

execution problem

HI I am trying to check the status of port using command /code: netstat -an | grep port /Output: *.2009 *.* 0 0 65535 0 LISTEN what i am trying to do is i want to grep only status Wether the port is established/listen if so show ok else... (1 Reply)
Discussion started by: esumiba
1 Replies

7. UNIX for Dummies Questions & Answers

execution problem

Hi I am automating my few commands out of which one command is tail -f running.logs when i run this command it does not automatically exit and show prompt (#) what would i do so that it will exit out automatically after few seconds and move to the next command without using ... (4 Replies)
Discussion started by: esumiba
4 Replies

8. UNIX for Dummies Questions & Answers

execution problem

Hi i have a file in which there are three fields code: 919804199233 404911130003916 357266044991350F and now i want to add two more fields i.e. code: 919804199233 404911130003916 357266044991350F ms 123 how can i do it using command line and if have a file of 100... (8 Replies)
Discussion started by: esumiba
8 Replies

9. UNIX for Dummies Questions & Answers

execution problem

Hi i am using expect module and trying to login using following code. ssh 127.0.0.1 expect "word:" send "$password \n" kindly let me know the login script using expect module (1 Reply)
Discussion started by: esumiba
1 Replies

10. Shell Programming and Scripting

File execution problem

hi all currently we are building lot of new servers(50+).What im looking for is a small piece of code that should help me in running a script that will configure company specific software in all the new boxes.For that currently we have to login to each and every new box manuallly and run that... (2 Replies)
Discussion started by: coolkid
2 Replies
Login or Register to Ask a Question