10-03-2014
singh,
thank you but it is not printing anything with this command
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
need a script to determine daily how many times does the below repeated sequence exist in a log file, and if it shows failure to connect in the same file
200 PORT Command successful.
150 Opening BINARY mode data connection for rgr016.daily.0305.
226 Transfer complete.
local: rgr016.daily.0306... (3 Replies)
Discussion started by: lichento
3 Replies
2. Shell Programming and Scripting
I'm sure this is easy to do but I can't find a one line command with awk or sed to append a char to the end of the string from Nth column.
Any sugestion please?
Thanks (2 Replies)
Discussion started by: cabrao
2 Replies
3. Shell Programming and Scripting
Hi,
I have a text file like
Version=abc
Tab=1
URL GOTO=www.abc.com/board=1
some text...
I want to run a loop x no of times and append to the text file above text but
URL GOTO should be www.abc.com/board=2 then 3,4...etc till x.
Kindly help (2 Replies)
Discussion started by: krabu
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need the total of how many times the pattern is being repeated in a particular file.
I tried with grep as below, but no go.
grep -c best sample
Contents of Sample file:
-----------------------
This is the best site I have never come across. The best one indeed.
Very best... (8 Replies)
Discussion started by: venkatesht
8 Replies
5. UNIX for Dummies Questions & Answers
Hi
I am new to the forum and would like to ask:
i have a file in form with thousands of column
id.1 A01 A01 A68 A68
id.2 A5 A5 A3 A3
1001 0 0 0.136 0.136
1002 0 0 0.262 0.183
1003 0 0 0.662 0.662
1004 0 0 ... (9 Replies)
Discussion started by: newbeeuk
9 Replies
6. Shell Programming and Scripting
Hello All, I have a file which has repeated lines. I want to print the lines which are repeated three times.
Please help. (3 Replies)
Discussion started by: ailnilanjan
3 Replies
7. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Develop a shell script that accepts a phrase and counts the number of times that it is repeated in a specific website.
Note: Im not sure if it's the whole website, or just a specific page but im guessing its thewhole website.
... (2 Replies)
Discussion started by: Zakerii
2 Replies
8. Shell Programming and Scripting
Hi guys,
I need to append new data at the end of each line of the files. This new data is based on substring (3rd fields) of last column.
Input file xxx.csv:
U1234|1-5X|orange|1-5X|Act|1-5X|0.1 /sac/orange 12345 0
U5678|1-7X|grape|1-7X|Act|1-7X|0.1 /sac/grape 5678 0... (5 Replies)
Discussion started by: null7
5 Replies
9. UNIX for Beginners Questions & Answers
Dears
i want to extract lines only that have first entry repeated 3 times or above , ex data :
-bash-3.00$ cat INTCONT-IS.CSV
M205-00-106_AMDRN:1-0-6-22,12-662-4833,intContact,2016-11-15 02:32:16,50
M205-00-106_AMDRN:1-0-23-17,12-616-0462,intContact,2016-11-15 02:32:23,50... (5 Replies)
Discussion started by: is2_egypt
5 Replies
10. Shell Programming and Scripting
Remove duplicate lines which has been repeated 4 times attached test.txt
below command tried and not getting expect output.
for i in `cat test.txt | uniq`
do
num=`cat test.txt | grep $i | wc -l`
echo $i $num
done
test.txt
... (17 Replies)
Discussion started by: Kalia
17 Replies
lpsched(1M) lpsched(1M)
NAME
lpsched, lpshut, lpmove, lpfence - start the LP request scheduler; stop the LP request scheduler; move requests between LP destinations;
define the minimum priority for printing
SYNOPSIS
requests dest
dest1 dest2
printer fence
DESCRIPTION
Schedules requests taken by
for printing on printers. is typically invoked in This creates a process which runs in the background until is executed. The
activity of the process is recorded in
recognizes the following options:
Write a verbose record of the
process on
Write logging data on
Shuts down the printer scheduler.
All printers that are printing at the time is invoked stop printing. Requests that were printing at the time the scheduler was
shut down are reprinted in their entirety after is started again. All LP commands perform their functions even when is not
running.
Moves requests that were queued by
between LP destinations.
The first form of the command moves the named requests to the LP destination, dest. requests are request IDs as returned by
The requests that are currently printing will not be moved.
The second form of the command moves all requests for destination dest1, including requests that are currently printing, to
destination dest2. As a side effect, dest1 rejects all subsequent requests.
Note that never checks the acceptance status (see accept(1M)) for the new destination when moving requests.
Defines the minimum required
priority for the spooled file to be printed. fence must be in between 0 (lowest fence) and 7 (highest fence). Each printer
has its own fence, which is initialized to 0 when it is configured by the command.
EXTERNAL INFLUENCES
Environment Variables
determines the format and contents of date and time strings.
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari-
able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization
variable contains an invalid setting, the commands behave as if all internationalization variables are set to "C". See environ(5).
EXAMPLES
Move requests and from destination queues and to the destination queue if the requests are not currently printing.
Move all requests from the destination queue laserjet1 to the destination queue laserjet2. This will also cause laserjet1 to reject
all subsequent print requests to it. All currently printing requests from laserjet1 will be reprinted on laserjet2.
Suppose is a member of classes and Running this command will cause only print requests of priority 5 and above from queues and to be
printed on printer Print requests of priority 4 and below will not be picked by the scheduler for printing on
WARNINGS
and perform their operation on the local system only.
FILES
SEE ALSO
cancel(1), enable(1), lp(1), lpstat(1), accept(1M), lpadmin(1M), lpana(1M), rcancel(1M), rlp(1M), rlpdaemon(1M), rlpstat(1M).
lpsched(1M)