Can someone help me with the following 2 objectives?
1) The following command is just an example. It gets a list of all print jobs. From there I am trying to extract the printer name. It works with the following command:
lpstat -W "completed" -o | awk -F- '{ print $1}'
Problem is, I want... (6 Replies)
Hi,
i have a file with contents like below ( any number of entries can be there)
111
222
333
444
555
i need to make another file with single line like below:
111,222,333,444,555 (without ending , )
TIA
Prvn (8 Replies)
Hi
I have a requirement as follows. My Input file is as follows.
COL1,COL2,COL3,COL4,COL5
987,2,3~7~5,400~468~598,0005~4687~5980
1111,2,2~7,400~468,0005~897
Expected OUTPUT
============
COL1,COL2,COL3,COL4,COL5
987,2,3,400,0005
987,2,7,468,4687
987,2,5,598,5980
1111,2,2,400,0005... (6 Replies)
Hello,
I have file to work with. It has 5 columns. The first three, altogether, constitutes the position. The 4th column contains some values for downstream analysis and the fifth column contains some values that I want to add to 4th column (only if they happen to be in the same position).
My... (5 Replies)
I want to extract the last rows of a data file, similar to that one below:
C1 xxx
C2 rrr
C3 ttt
....
Cn-1 hhh
Cn bbb
C1 yyy
C2 sss
C3 uuu
...
Cn-1 iii
Cn ccc
...
I just want to extract the final rows between C1 and Cn at each data file. n is not a constant,... (2 Replies)
I know uniq exists, but am not sure how to remove repeating lines when they are groups of two different lines repeating themselves, without using sort. I need them to be sorted in the original order, just to remove repeats.
cd /media/AUDIO/WAVE/9780743518673/mp3
~/Desktop/mp3-to-m4b... (1 Reply)
Hi everyone,
I got a data frame like the one below and and would like to do the following:
Ignore the first 3 rows and check in all following rows the second position. If the value is >500, subtract 100.
Example DF:
ABC 22 DE 12
BCD 223 GH 12
EFG 2104 DH ... (4 Replies)
Hi Experts ,
I need your help to collect the complete data between two time frame from the log files, when I try awk it's collecting the data only which is printed with time stamp
for example, awk works well from "16:00 to 17:30" but its not collecting <line*> "from 17:30 to 18:00"
... (8 Replies)
im using the code below to monitor a file:
gawk '{
a += gsub("(^| )accepted( |$)", "&")
a += gsub("(^| )open database( |$)", "&")
} END {
for (i in a)
printf("%s=%s\n", i, a)
}' /var/log/syslog
the code is searching the syslog file for the string "accepted" and "open... (2 Replies)
Discussion started by: SkySmart
2 Replies
LEARN ABOUT HPUX
comb
comb(1) General Commands Manual comb(1)NAME
comb - combine SCCS deltas
SYNOPSIS
SID] list] file ...
DESCRIPTION
The command generates a shell procedure (see sh(1)) which, when run, reconstructs the given SCCS files. The reconstructed files are usu-
ally smaller than the original files. Arguments can be specified in any order, but all options apply to all named SCCS files. If a direc-
tory is named, behaves as though each file in the directory were specified as a named file, except that non-SCCS files (last component of
the path name does not begin with and unreadable files are silently ignored. If a name of is given, the standard input is read; each line
of the standard input is taken to be the name of an SCCS file to be processed; non-SCCS files and unreadable files are silently ignored.
The generated shell procedure is written on the standard output.
Options
recognizes the following options. Each is explained as if only one named file is to be processed, but the effects of any option apply
independently to each named file.
The SCCS IDentification string (SID) of the oldest delta to be preserved. All older deltas are discarded in the recon-
structed file.
A list of deltas to be preserved (see get(1) for the syntax of a list). All other deltas are discarded.
For each generated, this option causes the reconstructed file to be accessed at the release of the delta to be created, other-
wise the reconstructed file would be accessed at the most recent ancestor. Use of the option can decrease the size
of the reconstructed SCCS file. It can also alter the shape of the delta tree of the original file.
This option causes
to generate a shell procedure which, when run, produces a report giving, for each file: the file name, size (in
blocks) after combining, original size (also in blocks), and percentage change computed by:
100 x (original - combined) / original
It is recommended that this option be used before any SCCS files are actually combined to determine exactly how much
space is saved by the combining process.
If no options are specified, preserves only leaf deltas and the minimal number of ancestors needed to preserve the tree.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
DIAGNOSTICS
Use sccshelp(1) for explanations.
EXAMPLES
The command:
creates a shell script named which if executed, creates a new using only the deltas from the old The script overwrites the old thus, it
might be wise to copy the original elsewhere. Here is an example of typical technique:
WARNINGS
may rearrange the shape of the tree of deltas. Combining files may or may not save space; in fact, it is possible for the reconstructed
file to actually be larger than the original.
FILES
Temporary file
Temporary file
SEE ALSO admin(1), delta(1), get(1), sccshelp(1), prs(1), sh(1), sccsfile(4).
comb(1)