06-03-2009
Pipe results of Grep Command to LS Comand
I'm using the command grep -l XYZ to get a list of files containing the string XYZ. Then I using the comand ls -l ABC to get the create date timestamp of the each file. I've tried combining the comands using the pipe command, grep -l XYZ | ls -l, but its not working. What am I doing wrong?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
When I type a command at the command line it supplies one result and the exact same command in a script
egrep '^01|^02|^03|^04' file > fileout
count = 29353
same count in the script yields a count of 23492
is there any reason this could be happening. (1 Reply)
Discussion started by: r1500
1 Replies
2. UNIX for Dummies Questions & Answers
ls -ltr | grep string
How can I use regular expressions to filter the results provided even more. I am using the above command as a reference. (1 Reply)
Discussion started by: ckandreou
1 Replies
3. UNIX for Dummies Questions & Answers
On our one HP-UX 11i box, we have some very long paths defined. When I want to check on our user processes running, the resulting paths are chopped off. /xyz/abc/123/......./server/b is really a process running in the ..../server/bin directory. Is this a terminal problem or buffer length... (1 Reply)
Discussion started by: bsp18974
1 Replies
4. Shell Programming and Scripting
Hi all,
Can someone help me with the following problem.
I am executing the following command:
(search for occurences of 'error' in files that match cl-*.log expression)
> grep -cw -i --max-count=1 'error' cl-*.log
this command outputs:
cl-apache.log:1
cl-apache_error.log:1... (3 Replies)
Discussion started by: epro66
3 Replies
5. UNIX for Dummies Questions & Answers
Hi
I am having a 'grep' headache
Here is the contents of my file:
(PBZ,CP,(((ME,PBZ,BtM),ON),((ME,((PBZ,DG),(CW9,PG11))),CW9,TS2,RT1)))
I would like to count out how many times 'PBZ' occurs and then place that number in the line above
3... (8 Replies)
Discussion started by: cavanac2
8 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am currently reading a tar file and searching for a particular word using grep e.g. Plane. At the moment, if a sentence is found with the word "Plane" the sentence itself is piped to another file.
Here is the code i am using;
for jar in 'cat jar_file.tar'; do
tar -tvf... (3 Replies)
Discussion started by: crunchie
3 Replies
7. UNIX for Dummies Questions & Answers
I am using grep to match a pattern, but the output is strange.
$ grep -r -o "pattern" *
Gives me:
Binary file foo1 matches
Binary file foo2 matches
Binary file foo3 matches
To find the lines before/after, I then have to use the following on each file:
$ strings foo1 | grep -A1 -B1... (0 Replies)
Discussion started by: chipperuga
0 Replies
8. Shell Programming and Scripting
Good afternoon,
I have just messed up and deleted some directories on my UNIX machine.
I would now want to know which packages are impacted by this. Therefore I have a look in the file "/var/sadm/install/contents" (which contains the filenames/directory names for each installation package). After... (2 Replies)
Discussion started by: scampsd
2 Replies
9. Shell Programming and Scripting
Hi,
i have a file hello.log which as several line that look like the below
2015-12-07 09:46:56 0:339 120.111.12.12 POST /helloWorld
2015-12-07 09:46:57 0:439 122.111.12.12 POST /helloWorld
....
when i grep expecting to see results like the below.
... (6 Replies)
Discussion started by: mohtashims
6 Replies
10. UNIX for Beginners Questions & Answers
Hi
I wanted to know if there is an option in grep command to show the number of results (not the number of lines of findings).
Thanks (14 Replies)
Discussion started by: abdossamad2003
14 Replies
LEARN ABOUT CENTOS
icclink
ICCLINK(1) General Commands Manual ICCLINK(1)
NAME
icclink - little cms device link generator.
SYNOPSIS
icclink [options] <profiles>
DESCRIPTION
lcms is a standalone CMM engine, which deals with the color management. It implements a fast transformation between ICC profiles. icclink
is little cms device link generator.
Links two or more profiles into a single devicelink profile. Colorspaces must be paired except Lab/XYZ, that can be interchanged.
OPTIONS
-8 Creates 8-bit devicelink.
-b Black point compensation.
-c <0,1,2,3>
Precission (0=LowRes, 1=Normal, 2=Hi-res). [defaults to 1]
-d description
Description text (quotes can be used).
-h <0,1,2,3>
Show summary of options and examples.
-i profile
Input profile (defaults to sRGB).
-k <0..400>
Ink-limiting in % (CMYK only)
-o profile
Output devicelink profile. [defaults to 'devicelink.icm']
-t <0,1,2,3>
Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute).
-x Creatively, guess deviceclass of resulting profile.
Built-in profiles:
*Lab -- D50-based CIEL*a*b (PCS)
*XYZ -- CIE XYZ (PCS)
*sRGB -- sRGB color space
*Gray22- Monochrome of Gamma 2.2
*Lin2222- CMYK linearization of gamma 2.2 on each channel
EXAMPLES
To create 'devicelink.icm' from a.icc to b.icc:
icclink a.icc b.icc
To create 'out.icc' from sRGB to cmyk.icc:
icclink -o out.icc *sRGB cmyk.icc
To create a sRGB input profile working in Lab:
icclink -x -o sRGBLab.icc *sRGB *Lab
To create a XYZ -> sRGB output profile:
icclink -x -o sRGBLab.icc *XYZ *sRGB
To create a abstract profile doing softproof for cmyk.icc:
icclink -t1 -x -o softproof.icc *Lab cmyk.icc cmyk.icc *Lab
To create a 'grayer' sRGB input profile:
icclink -x -o grayer.icc *sRGB gray.icc gray.icc *Lab
To embed ink limiting into a cmyk output profile:
icclink -x -o cmyklimited.icc -k 250 cmyk.icc *Lab
NOTES
For suggestions, comments, bug reports etc. send mail to info@littlecms.com.
SEE ALSO
jpegicc(1), tifficc(1), tiffdiff(1), icc2ps(1), icctrans(1), wtpt(1)
AUTHOR
This manual page was written by Shiju p. Nair <shiju.p@gmail.com>, for the Debian project.
September 30, 2004 ICCLINK(1)