Hi All,
How can the head command be used to extract only a particular line.
By default head -n filename displays the first n lines. I want only the nth line.
I couldn't get it from forum search.
Thanks,
Sumesh (6 Replies)
Hi friends,I am new to unix and this is really a dummy question.but please help me out.
How to simulate head command without using head command???
also tail command too,also more command.
it is given as a homework to do....please tell me how to do (2 Replies)
Hi, I have the following problem. I have files with one column of data (let's say file1.dat, file2.dat...file6.dat), and I would like to record the first value of the column of each file into another file (let's name it fileall.dat), which would have the the six values, one in each column. I use to... (4 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I've been stuck on this problem for 2 days now
What command would you enter to list the first lines of all text... (11 Replies)
Hi,
I need some advise on whether there is a better way of doing what I am currently planning to do. Perhaps I should be using arrays instead of re-directing output to files?
I need to use a tool/program named ADRCI provided by Oracle to remove trace files that it generates. Honestly it is... (1 Reply)
the following unix command gives me the number of records avaiable in my application
/navs/sys/appl/bin/record list
This gives number of rows and colums. I want to generate one text file everyday at 6:10 AM using cron
So I added following entery into crontable
#Generate record file at... (6 Replies)
Hi
1st problem
--------------
i have this sed command in my unix script which replaces new line and carriage return in a line with the string "
"
the script works fine in Linux 3.0.101-0.5, but not in AIX 1 7 , the "s/\r/\
/g" replacement, replaces
all the character "r" in the file.... (3 Replies)
we have a file as below
AREA,COUNTRY,RANK
A,MX,1
A,MX,2
A,MX,5
A,MX,8
A,IN,7
A,IN,5
A,IN,21
B,CN,6
B,CN,2
B,CN,8
B,CN,0
we need the TOP 2 RANK records for the combination of Area, Country as below. i know head -2, which gives top 2 records from file but not sure it lists based on... (7 Replies)
Discussion started by: JSKOBS
7 Replies
LEARN ABOUT DEBIAN
globus-job-get-output
GLOBUS-JOB-GET-OU(1) GRAM5 Commands GLOBUS-JOB-GET-OU(1)NAME
globus-job-get-output - Retrieve the output and error streams from a GRAM job
SYNOPSIS
globus-job-get-output [-r RESOURCE | -resource RESOURCE]
[-out | -err] [-t LINES | -tail LINES] [-follow LINES | -f LINES] JOBID
globus-job-get-output [-help] [-usage] [-version] [-versions]
DESCRIPTION
The globus-job-get-output program retrieves the output and error streams of the job named by JOBID. By default, globus-job-get-output will
retrieve all output and error data from the job and display them to its own output and error streams. Other behavior can be controlled by
using command-line options. The data retrieval is implemented by submitting another job which simply displays the contents of the first
job's output and error streams. By default this retrieval job is submitted to the default GRAM resource running on the same host as the
job. This behavior can be controlled by specifying a particular resource manager contact string as the RESOURCE parameter to the -r or
-resource option.
OPTIONS
The full set of options to globus-job-get-output are:
-help, -usage
Display a help message to standard error and exit.
-version
Display the software version of the globus-job-get-output program to standard output.
-version
Display the software version of the globus-job-get-output program including DiRT information to standard output.
-resource RESOURCE, -r RESOURCE
Submit the retrieval job to the resource named by RESOURCE instead of the default GRAM service on the same host as the job contact.
-out
Retrieve only the standard output stream of the job. The default is to retrieve both standard output and standard error.
-err
Retrieve only the standard error stream of the job. The default is to retrieve both standard output and standard error.
-tail LINES, -t LINES
Print only the last LINES count lines of output from the data streams being retrieved. By default, the entire output and error file
data is retrieved. This option can not be used along with the -f or -follow options.
-follow LINES, -f LINES
Print the last LINES count lines of output from the data streams being retrieved and then wait until canceled, printing any subsequent
job output that occurs. By default, the entire output and error file data is retrieved. This option can not be used along with the -t
or -tail options.
ENVIRONMENT
If the following variables affect the execution of globus-job-get-output.
X509_USER_PROXY
Path to proxy credential.
X509_CERT_DIR
Path to trusted certificate directory.
University of Chicago 03/18/2010 GLOBUS-JOB-GET-OU(1)