Sponsored Content
Full Discussion: Store user input in differ
Top Forums Shell Programming and Scripting Store user input in differ Post 302563148 by Pratik4891 on Monday 10th of October 2011 07:58:29 AM
Old 10-10-2011
Store user input in differ

Hello all

Can anyone help me to solve the below issue

I want to take user input with space separated .The number of inputs can be variable

like if user inputs
1 2 3 4

ouput will stored in as array a[i] where i=4 and I can retreive the value like a[3] =3

any thoughts how to do it

Appreciate your kind help
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sftp file size differ

Hi, I have one doubt over sftp. I am trnasferring a file from server1 to server2 using sftp. The size of the file shows different in file 1 and file2 after sftp even though it shows same number of byte transferred. I don't understand the problem. For example: I have file1 having size... (3 Replies)
Discussion started by: siba.s.nayak
3 Replies

2. Solaris

Why do controllers differ between physical and logical names

When I look at format I can see the following info: AVAILABLE DISK SELECTIONS: 0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@1c,600000/scsi@2/sd@0,0 1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@1c,600000/scsi@2/sd@1,0 Can anyone tell me... (2 Replies)
Discussion started by: James_UK
2 Replies

3. Shell Programming and Scripting

How to read outlook mails for a particular user and store that mail description in a excel/notepad

My requirements are :- Remote connection to the another server with log in credential. Read the mail from a particular user with date,subject and contents and store these data in XLs with consecutive columns (date,subject and contents). Mail that XLs to multiple user those are in a mailing... (3 Replies)
Discussion started by: ranjan001
3 Replies

4. Solaris

How to differ local disks from attached from storage ones?

Hello. I have a solaris box with several local disks and several come from SYMMETRIX storage. Is there any way to tell format (or other util) to show only local disks? (6 Replies)
Discussion started by: urello
6 Replies

5. Shell Programming and Scripting

How to get the user input recursively until the user provides valid input

Hi, echo "Enter file name of input file list along with absolute path : " read inputFileList if then for string in `cat inputFileList` do echo $string done else echo " file does not exist" fi From the above code, if the user enters a invalid file... (1 Reply)
Discussion started by: i.srini89
1 Replies

6. Shell Programming and Scripting

saving all input name and store them as variables

Hi I want to write a script such that when executed, it will store all input as different variable, for eg ./store.sh name1 name2 name3 name4 will result in $1=name1 $2=name2 $3=name3 etc How do I do that? Thanks. (1 Reply)
Discussion started by: piynik
1 Replies

7. Shell Programming and Scripting

create an array which can store the strings from the user input in shell script

I want to create an array which can store the strings from the user input in shell script . example :- I want to store the 5 fruits name in a single array which the user provides . (1 Reply)
Discussion started by: Pkast
1 Replies

8. Shell Programming and Scripting

List the file names that differ

Hello, I have two directories - prev and current . They both have same multiple subdirectories and files. Now the current directory can have some updated files and some new files added that is not in prev. I want to find the list of file names that differ. I am doing this because i can not... (2 Replies)
Discussion started by: jakSun8
2 Replies

9. Shell Programming and Scripting

Script interacts with user , based on user input it operates

i have a script which takes input from user, if user gives either Y/y then it should continue, else it should quit by displaying user cancelled. #!/bin/sh echo " Enter your choice to continue y/Y OR n/N to quit " read A if then echo " user requested to continue " ##some commands... (7 Replies)
Discussion started by: only4satish
7 Replies

10. Shell Programming and Scripting

User input and run awk using the input

I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :). The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Discussion started by: cmccabe
7 Replies
MAIN.C(1)						      Debian GNU/Linux manual							 MAIN.C(1)

NAME
pbc_merge - Merge multiple Parrot bytecode (PBC) files into a single PBC file. SYNOPSIS
pbc_merge -o out.pbc input1.pbc input2.pbc ... DESCRIPTION
This program takes two or more PBC files and produces a single merged output PBC file with a single fix-up table and constants table. Command-Line Options "-o out.pbc" The name of the PBC file to produce, containing the merged segments from the input PBC files. Functions "static void help(void)" Print out the user help info. "static PackFile_ByteCode* pbc_merge_bytecode(PARROT_INTERP, pbc_merge_input **inputs, int num_inputs, PackFile *pf)" This function merges the bytecode from the input packfiles, storing the offsets that each bit of bytecode now exists at. "static PackFile_ConstTable* pbc_merge_constants(PARROT_INTERP, pbc_merge_input **inputs, int num_inputs, PackFile *pf)" This function merges the constants tables from the input PBC files. "static void pbc_merge_debugs(PARROT_INTERP, pbc_merge_input **inputs, int num_inputs, PackFile_ByteCode *bc)" This function merges the debug segments from the input PBC files. "static void pbc_fixup_bytecode(PARROT_INTERP, pbc_merge_input **inputs, int num_inputs, PackFile_ByteCode *bc)" Fixup bytecode. This includes correcting pointers into the constant table and updating the ops mapping. "static void pbc_fixup_constants(PARROT_INTERP, pbc_merge_input **inputs, int num_inputs)" Fixup constants. This includes correcting pointers into bytecode. "static PackFile* pbc_merge_begin(PARROT_INTERP, pbc_merge_input **inputs, int num_inputs)" This is the function that drives PBC merging process. "static void pbc_merge_write(PARROT_INTERP, PackFile *pf, const char *filename)" This functions writes out the merged packfile. "int main(int argc, const char **argv)" The main function that grabs console input, reads in the packfiles provided they exist, hands them to another function that runs the merge process and finally writes out the produced packfile. Debian Project 2012-01-08 MAIN.C(1)
All times are GMT -4. The time now is 06:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy