Hi,
I have a script that works on a unix box but am trying to get it working on a linux box that uses shell. I am not a programmer so this is proving harder than I imagined. I made some changes and ended up with the script below but when I run it I get the following messages. Any help would be... (4 Replies)
Hi
I am trying to edit a csv file. Bacically I need to input a search variable and the value that must be changed in one of the fields corresponding to that searched variable.
My csv file looks like so:
1,1A,5
1,1B,2
1,1C,3
2,2A,7
2,2B,4
2,2C,0
3,3A,1
3,3B,6
3,3C,4
I want to... (4 Replies)
Hello,
I had written a shell script that accepts input file as cmd line argument and process this file.
if ; then
if ; then
. $1
LOGFILE="$LOG_FILE/MIG_BIOS.log";
get_input_file
else
ERROR_CODE=MSCRM0005_003
error "$ERROR_CODE : Input file $1 is not available";
exit... (3 Replies)
Output file template format
<input_file_name>a</input_file_name>
<total_length_size>b</total_length_size>
<log_10_length_size>c</log_10_length_size>
Input_file_1 (eg. sample.txt)
SDFSDGDGSFGRTREREYWW
Parameter:
a is equal to the input file name
b is equal to the total length of... (2 Replies)
Hi all,
I'm trying to get a bash script working for a program (bowtie) which takes a list of input files (*.fastq) and assembles them to an output file (outfile.sam). All the .fastq files are in one folder in my home directory (~/infiles).
The problem is that the 'bowtie' requires that... (7 Replies)
I am working on a script to unfold data for each column from a specific line of data and write output in a single line.
Input data looks like this.
2011-09-26 INF UM_10 UserMana Starting synchronization for security domain
14:37:31 080 gementSe .
rvice
I... (2 Replies)
Hello,
I'm trying to figure out how best to approach this script, and I have very little experience, so I could use all the help I can get. :wall:
I regularly need to delete files from many directories.
A file with the same name may exist any number of times in different subdirectories.... (3 Replies)
Hi,
can some one help me how to encrypt and decrypt a file.
AIM: reade user input, encrypt it and save it to file.
while decryption read the encrypted file decrypt it and save the output in some variable.
Example: consider we have Credentials.txt file with content username: password... (5 Replies)
Dear Friends,
I am looking for a shell script to merge input files into one file .. here is my idea:
1st paramter would be outfile file (all input files content)
read all input files and merge them to input param 1
ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Hello experts, I need help writing individual files from a data matrix, with each new file being written every time there is a blank line:
From this
cat file.txt
col1 col2 col3
6661 7771 8881
6661 7771 8881
6661 7771 8881
col1 col2 col3
3451 2221 1221... (6 Replies)
Discussion started by: torchij
6 Replies
LEARN ABOUT LINUX
cancel
cancel(1)cancel(1)NAME
cancel - cancel print request
SYNOPSIS
cancel [ request-ID...] [destination...]
cancel -u user... [destination...]
The cancel utility cancels print requests. There are two forms of the cancel command.
The first form of cancel has two optional arguments: print requests (request-ID) and destinations (destination). Specifying request-ID with
destination cancels request-ID on destination. Specifying only the destination cancels the current print request on destination. If desti-
nation is not specified, cancel cancels the requested print request on all destinations.
The second form of cancel cancels a user's print requests on specific destinations.
Users can only cancel print requests associated with their username. By default, users can only cancel print requests on the host from
which the print request was submitted. If a super-user has set user-equivalence=true in /etc/printers.conf on the print server, users can
cancel print requests associated with their username on any host. Super-users can cancel print requests on the host from which the print
request was submitted. Superusers can also cancel print requests from the print server.
The print client commands locate destination information using the printers database in the name service switch. See nsswitch.conf(4),
printers(4), and printers.conf(4) for details.
The following options are supported:
-u user The name of the user for which print requests are to be cancelled. Specify user as a username.
The following operands are supported:
destination The destination on which the print requests are to be canceled. destination is the name of a printer or class of printers
(see lpadmin(1M)). If destination is not specified, cancel cancels the requested print request on all destinations. Specify
destination using atomic or POSIX-style (server:destination), names. See for information regarding using POSIX-style des-
tination names with cancel. See standards(5) for information regarding POSIX.
request-ID The print request to be canceled. Specify request-ID using LP-style request IDs (destination-number).
user The name of the user for which the print requests are to be cancelled. Specify user as a username.
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
/var/spool/print/* LP print queue.
$HOME/.printers User-configurable printer database.
/etc/printers.conf System printer configuration database.
printers.conf.byname NIS version of /etc/printers.conf.
printers.org_dir NIS+ version of /etc/printers.conf.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpcu |
+-----------------------------+-----------------------------+
lp(1), lpq(1B), lpr(1B), lprm(1B), lpstat(1), lpadmin( 1M), nsswitch.conf(4), printers(4), printers.conf(4), attributes(5), standards(5)
POSIX-style destination names (server:destination) are treated as print requests if destination has the same format as an LP-style request-
ID. See standards(5).
Some print servers send cancelation notification to job owners when their print jobs have been cancelled. This notification usually comes
in the form of an email message. Cancelation notices cannot be disabled on a Solaris server.
23 Feb 2005 cancel(1)