Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to submit several commands together Post 302617489 by forevertl on Monday 2nd of April 2012 05:52:19 PM
Old 04-02-2012
how to submit several commands together

Dear all,

I have a simple question. I have many cut commands like below to run. I am wondering how to just type and submit all the commands at once and then each of the command will be run automaticaly one by one. Thanks a lot!

Code:
cut -d ' ' -f  3-2002          chr20_step2.mlprob>chr20_part1.mlprob   
cut -d ' ' -f  2003-4002  chr20_step2.mlprob>chr20_part2.mlprob  
cut -d ' ' -f  4003-6002  chr20_step2.mlprob>chr20_part3.mlprob   
cut -d ' ' -f  6003-8002  chr20_step2.mlprob>chr20_part4.mlprob   
cut -d ' ' -f  8003-10002  chr20_step2.mlprob>chr20_part5.mlprob   
cut -d ' ' -f  10003-12002  chr20_step2.mlprob>chr20_part6.mlprob   
cut -d ' ' -f  12003-14002  chr20_step2.mlprob>chr20_part7.mlprob   
cut -d ' ' -f  14003-16002  chr20_step2.mlprob>chr20_part8.mlprob   
cut -d ' ' -f  16003-18002  chr20_step2.mlprob>chr20_part9.mlprob   
cut -d ' ' -f  18003-20002  chr20_step2.mlprob>chr20_part10.mlprob   
cut -d ' ' -f  20003-22002  chr20_step2.mlprob>chr20_part11.mlprob   
cut -d ' ' -f  22003-24002  chr20_step2.mlprob>chr20_part12.mlprob   
cut -d ' ' -f  24003-26002  chr20_step2.mlprob>chr20_part13.mlprob   
cut -d ' ' -f  26003-28002  chr20_step2.mlprob>chr20_part14.mlprob   
cut -d ' ' -f  28003-30002  chr20_step2.mlprob>chr20_part15.mlprob   
cut -d ' ' -f  30003-32002  chr20_step2.mlprob>chr20_part16.mlprob   
cut -d ' ' -f  32003-34002  chr20_step2.mlprob>chr20_part17.mlprob   
cut -d ' ' -f  34003-36002  chr20_step2.mlprob>chr20_part18.mlprob   
cut -d ' ' -f  36003-38002  chr20_step2.mlprob>chr20_part19.mlprob   
cut -d ' ' -f  38003-40002  chr20_step2.mlprob>chr20_part20.mlprob   
cut -d ' ' -f  40003-42002  chr20_step2.mlprob>chr20_part21.mlprob   
cut -d ' ' -f  42003-44002  chr20_step2.mlprob>chr20_part22.mlprob   
cut -d ' ' -f  44003-46002  chr20_step2.mlprob>chr20_part23.mlprob   
cut -d ' ' -f  46003-48002  chr20_step2.mlprob>chr20_part24.mlprob   
cut -d ' ' -f  48003-50002  chr20_step2.mlprob>chr20_part25.mlprob   
cut -d ' ' -f  50003-52002  chr20_step2.mlprob>chr20_part26.mlprob   
cut -d ' ' -f  52003-54002  chr20_step2.mlprob>chr20_part27.mlprob   
cut -d ' ' -f  54003-56002  chr20_step2.mlprob>chr20_part28.mlprob   
cut -d ' ' -f  56003-58002  chr20_step2.mlprob>chr20_part29.mlprob   
cut -d ' ' -f  58003-60002  chr20_step2.mlprob>chr20_part30.mlprob   
cut -d ' ' -f  60003-62002  chr20_step2.mlprob>chr20_part31.mlprob   
cut -d ' ' -f  62003-64002  chr20_step2.mlprob>chr20_part32.mlprob   
cut -d ' ' -f  64003-66002  chr20_step2.mlprob>chr20_part33.mlprob   
cut -d ' ' -f  66003-68002  chr20_step2.mlprob>chr20_part34.mlprob   
cut -d ' ' -f  68003-70002  chr20_step2.mlprob>chr20_part35.mlprob   
cut -d ' ' -f  70003-72002  chr20_step2.mlprob>chr20_part36.mlprob   
cut -d ' ' -f  72003-72518  chr20_step2.mlprob>chr20_part37.mlprob


Last edited by methyl; 04-02-2012 at 07:46 PM.. Reason: please use code tags
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to submit cron jobs?

How can I write a script to submit a perl script as a cron job but only have it execute once? After it has executed once, I would like it to automatically insert itself again into cron. I want to avoid the situation where I schedule a cron job to run once a day, but end up with multiple... (4 Replies)
Discussion started by: siegfried
4 Replies

2. Shell Programming and Scripting

Cannot submit a background job

Hi all, I am currently facing a problem when i am submitting a script to run in the background to collect statistics round the clock on an AIX box. I don't have root authority nor can I set it in cron. So when i submit the job, it runs fine, but won't let me signoff. It prompts me that... (2 Replies)
Discussion started by: tansha
2 Replies

3. Forum Support Area for Unregistered Users & Account Problems

cant submit anything

hello admins, i dont use unix.com very often - but when i do have questions, i submit them at the site - but now I cannot submit anything in any forum on the site. The is the only forum i could add a new thread. its tells me that my account could be de-righted, or that im tring to submit... (1 Reply)
Discussion started by: congo
1 Replies

4. Shell Programming and Scripting

PHP Help with Form Submit

Hi, I have a custom HTML form that has a couple radio buttons and a text field that requires a number. I'm not a php programmer and could use some help with putting together php code to calculate a total based on the radio button selection and the text field number. ... (3 Replies)
Discussion started by: nck
3 Replies

5. News, Links, Events and Announcements

where to submit my work?

Hello sir, I worked out some features using java,shell programming and modified the bash shell. We have come up with 13 new features. I want to know where should I submit my work so that it would be of some use to the open source professionals :confused: (1 Reply)
Discussion started by: nsharath
1 Replies

6. Ubuntu

Submit using curl

I'm trying to upload a file to a page using curl and after uploading that file i want to store the redirecting page so i can download the results. I'm using the command: curl "http://apps.gdgps.net/kag_upload.php?kag_type=static&kag_frequency=dual&kag_latency=accurate&... (8 Replies)
Discussion started by: limadario
8 Replies

7. Post Here to Contact Site Administrators and Moderators

Where to submit my scripts

have a doubt. Where I can submit shell scripts done by me ? (5 Replies)
Discussion started by: linuxadmin
5 Replies

8. Shell Programming and Scripting

Can't submit a form.

hello my script is submitting POST-data to a site (its not my first script, i've done these before many times (include parsing scripts) but this one is tough) so the problem is i'm submitting a form with firefox and in firebug i see WHAT exactly i'm submitting then when i do EXACTLY the... (28 Replies)
Discussion started by: tip78
28 Replies

9. Shell Programming and Scripting

SGE submit script

Hi, I'm trying to edit my working bash script to an SGE script in order to submit it as a job to the cluster. Currently I have: #!/bin/bash # Perform fastqc on files in a specified directory. for ((j=1; j <=17; j++)) do directory=/data4/una/batch"$j"/ ... (0 Replies)
Discussion started by: una1992
0 Replies
XCUTSEL(1)						      General Commands Manual							XCUTSEL(1)

NAME
xcutsel - interchange between cut buffer and selection SYNOPSIS
xcutsel [ -toolkitoption ...] [-selection selection] [-cutbuffer number] DESCRIPTION
The xcutsel program is used to copy the current selection into a cut buffer and to make a selection that contains the current contents of the cut buffer. It acts as a bridge between applications that don't support selections and those that do. By default, xcutsel will use the selection named PRIMARY and the cut buffer CUT_BUFFER0. Either or both of these can be overridden by com- mand line arguments or by resources. An xcutsel window has the following buttons: quit When this button is pressed, xcutsel exits. Any selections held by xcutsel are automatically released. copy PRIMARY to 0 When this button is pressed, xcutsel copies the current selection into the cut buffer. copy 0 to PRIMARY When this button is pressed, xcutsel converts the current contents of the cut buffer into the selection. The button labels reflect the selection and cutbuffer selected by command line options or through the resource database. When the ``copy 0 to PRIMARY'' button is activated, the button will remain inverted as long as xcutsel remains the owner of the selection. This serves to remind you which client owns the current selection. Note that the value of the selection remains constant; if the cutbuffer is changed, you must again activate the copy button to retrieve the new value when desired. OPTIONS
Xcutsel accepts all of the standard X Toolkit command line options as well as the following: -selection name This option specifies the name of the selection to use. The default is PRIMARY. The only supported abbreviations for this option are ``-select'', ``-sel'' and ``-s'', as the standard toolkit option ``-selectionTimeout'' has a similar name. -cutbuffer number This option specifies the cut buffer to use. The default is cut buffer 0. X DEFAULTS
This program accepts all of the standard X Toolkit resource names and classes as well as: selection (class Selection) This resource specifies the name of the selection to use. The default is PRIMARY. cutBuffer (class CutBuffer) This resource specifies the number of the cut buffer to use. The default is 0. WIDGET NAMES
The following instance names may be used when user configuration of the labels in them is desired: sel-cut (class Command) This is the ``copy SELECTION to BUFFER'' button. cut-sel (class Command) This is the ``copy BUFFER to SELECTION'' button. quit (class Command) This is the ``quit'' button. SEE ALSO
X(7), xclipboard(1), xterm(1), text widget documentation, individual client documentation for how to make a selection. BUGS
There is no way to change the name of the selection or the number of the cut buffer while the program is running. AUTHOR
Ralph R. Swick, DEC/MIT Project Athena X Version 11 xclipboard 1.1.2 XCUTSEL(1)
All times are GMT -4. The time now is 07:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy