![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need your suggestion please.. | unknown2205 | Shell Programming and Scripting | 1 | 11-21-2005 02:45 AM |
| I want a suggestion | camel | High Level Programming | 6 | 06-13-2003 06:59 PM |
| Suggestion | tovsky | Post Here to Contact Site Administrators and Moderators | 1 | 08-07-2001 08:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Scripting suggestion
Hello Scripting experts,
I need a very basic suggestion regarding scripting(shell or whtevr). My requirement is to to generate a file after: 1) Reading a file containing list of names etc. eg: list is like this input1 : IN input2 : IN . . output1: OUT output2: OUT . . 2) Then taking these inputs/outputs wanted to perform some string addition(particular type) on these names to generate new file. eg: map( (input1)input , (output1)output ) . . . Basically can add a FOR loop for counting the length(N) of my input list file, and add the above map strings that many times(N). I know its kinds very simple, tell me if shell scripting would be best to perform such kinda string operation or any other script like perl... Looking forward for some nice solutions!! How to do that with simplest usage of commands? Regards, Ady |
|
||||
|
Thanks.
Actually I want to create new file, such that these variables could be used, eg: my file will be output.file having logic temp; module (tempo) begin map( (input1 )input , (output1)output ) map( (input2 )input , (output2)output ) map( (input3 )input , (output3)output ) map( (input4 )input , (output4)output ) end endmodule Problem is print command like above canot allow me to print like above, with newlines or whtever. I tried with printf command too. Is there any other way to insert newlines,etc inside print{ }. Like this print{" logic temp; module (tempo) begin map( (input1 )input , (output1)output ) map( (input2 )input , (output2)output ) map( (input3 )input , (output3)output ) map( (input4 )input , (output4)output ) end endmodule"} Thanks for giving your feedbacks. -Ady |
![]() |
| Bookmarks |
| Tags |
| scripting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|