01-27-2017
I'm confused. You say that your output looks like your input file. And since nothing in your code makes any modifications to that input file (it adds some text at the start of the output file and copies that text to the end of the output), why don't you just change the XXXXX in the 1st line of the file named new.txt to be the date string that you want to copy into your output file? Are you saying that the for loop before the cat in the pipeline in your script does not find any files to add any data to your output?
And, exactly what date string format did you want to use instead of the XXXXX that is current in new.txt and, unless the date string you want is the current date and time when your script is run, where is that date string supposed to be found?
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How would I put the date within my PS1 command for my shell prompt?
I have it set to:
PS1='$>'
I tried PS1='$>' but that didn't work. (7 Replies)
Discussion started by: kymberm
7 Replies
2. UNIX for Dummies Questions & Answers
Hi
I need to do an add function but it should include the prefixed zeros
For Example
i=00123
j=`expr $i + 1`
The output it shows is 124 but I want the output to be 00124
Could any one help me finding out how to do this
Thanks (16 Replies)
Discussion started by: sivasenthil_k
16 Replies
3. Solaris
Hi all first post here.
quick question what Solaris 10 update level included this utility?
I have a bunch of Sun boxes at varying levels of Solaris 10 some have it some do not.
When I do my install I take the full option for the packages to install on all the systems.
thanks in advance... Mike (4 Replies)
Discussion started by: mike_243us
4 Replies
4. Programming
Hello, I have an error when I include the socket.h linux header and compile with gcc.
In file included from /usr/include/sys/socket.h:40:0,
from test.c:17:
/usr/include/bits/socket.h:217:5: error: expected identifier before numeric constant
In test.c:17:
#include... (4 Replies)
Discussion started by: meltingshell
4 Replies
5. UNIX for Dummies Questions & Answers
hey,
just want to ask how to check this scenario
a="apple banana cherry"
if
egg=0
fi
how do you do the condition?
thanks! (2 Replies)
Discussion started by: h0ujun
2 Replies
6. Shell Programming and Scripting
I need to shred and delete a file after a certain time. Therefore I use
shred -z /path/to/file.txt | rm -rf /path/to/file.txtIt works well, but typing
in that very directory
ls -shiI still see the so called backup-copy lets say file.txt~
When running bleachbit it will disappear thoroughly.... (3 Replies)
Discussion started by: 1in10
3 Replies
LEARN ABOUT DEBIAN
globus-job-cancel
GLOBUS-JOB-CANCEL(1) GRAM5 Commands GLOBUS-JOB-CANCEL(1)
NAME
globus-job-cancel - Cancel a GRAM batch job
SYNOPSIS
globus-job-cancel [-f | -force] [-q | -quiet] JOBID
globus-job-cancel [-help] [-usage] [-version] [-versions]
DESCRIPTION
The globus-job-cancel program cancels the job named by JOBID. Any cached files associated with the job will remain until globus-job-clean
is executed for the job.
By default, globus-job-cancel prompts the user prior to canceling the job. This behavior can be overridden by specifying the -f or -force
command-line options.
OPTIONS
The full set of options to globus-job-cancel are:
-help, -usage
Display a help message to standard error and exit.
-version
Display the software version of the globus-job-cancel program to standard output.
-version
Display the software version of the globus-job-cancel program including DiRT information to standard output.
-force, -f
Do not prompt to confirm job cancel and clean-up.
-quiet, -q
Do not print diagnostics for succesful cancel. Implies -f
ENVIRONMENT
If the following variables affect the execution of globus-job-cancel.
X509_USER_PROXY
Path to proxy credential.
X509_CERT_DIR
Path to trusted certificate directory.
University of Chicago 03/18/2010 GLOBUS-JOB-CANCEL(1)