10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am searching the following string Folder^ in a file and replacing it with Folder^/
However if the file already contains Folder^/ I want to avoid replacing it with Folder^//
To do this I have to do the following today:
1) echo "Folder^" | sed 's/Folder\^/Folder\^\//g'
I get... (2 Replies)
Discussion started by: mehimadri12
2. Shell Programming and Scripting
I am new to Unix and had below requirement to finish my task.
I have file1.dat which has data as shown below.
file1.dat has only file names
I have folder which has above files mentioned in file1.dat
case1.txt... (6 Replies)
Discussion started by: raj028
3. Shell Programming and Scripting
I have a file
After sed/awk operation the file should be as follows
#import node4 (6 Replies)
Discussion started by: anil510
4. UNIX for Dummies Questions & Answers
Now I have: /Users/okn/bin for my private shell scripts.
How do I add /Users/okn/bin to my PATH?
The PATH is right now:
The .bash_profile doesn't state anything about a PATH (yet).
I read about this:
or... (1 Reply)
Discussion started by: OmarKN
5. UNIX for Dummies Questions & Answers
I have the Overview.csv file like below format
Message ID Sendout Group Name Email Subject Name Type Rcpts Responses Response Rate Open Rate Click Rate
2000009723 01-22-2014 16:14 Test_GroupPQA2013 firstname.lastname@example.org INFO RISQUE D'INONDATION... (3 Replies)
Discussion started by: armsaran
6. Shell Programming and Scripting
Hi there, i have an /etc/hosts file that is organised in sections, like this
# Oracle Servers
# Prod Sybase Servers
I am just trying to write a line of code that will ill be able to pass the comment block... (3 Replies)
Discussion started by: hcclnoodles
7. Shell Programming and Scripting
I have 2 files like below.
fed (4 Replies)
Discussion started by: jayadanabalan
8. UNIX for Dummies Questions & Answers
I have two files. file1 contents:
aaa bbb ccc ddd
eee fff ggg ddd
www eee ggg dde
qqq zzz hhh ddd
Now I want to add file2 contents to end of lines in file1 where a line contains pattern "ddd" and it should look like this:
aaa... (3 Replies)
Discussion started by: harjitsingh
9. Shell Programming and Scripting
I have a file with following list.
Also i have another file 2.txt in which the data is in this format as shown:
---------... (6 Replies)
Discussion started by: imas
10. UNIX for Dummies Questions & Answers
i need to search a word in the tar file. if it is present just give me the file name please help me (1 Reply)
Discussion started by: junkbuster
ppmtosixel(1) General Commands Manual ppmtosixel(1)
ppmtosixel - convert a portable pixmap into DEC sixel format
ppmtosixel [-raw] [-margin] [ppmfile]
Reads a portable pixmap as input. Produces sixel commands (SIX) as output. The output is formatted for color printing, e.g. for a DEC
LJ250 color inkjet printer.
If RGB values from the PPM file do not have maxval=100, the RGB values are rescaled. A printer control header and a color assignment table
begin the SIX file. Image data is written in a compressed format by default. A printer control footer ends the image file.
-raw If specified, each pixel will be explicitly described in the image file. If -raw is not specified, output will default to com-
pressed format in which identical adjacent pixels are replaced by "repeat pixel" commands. A raw file is often an order of magni-
tude larger than a compressed file and prints much slower.
If -margin is not specified, the image will be start at the left margin (of the window, paper, or whatever). If -margin is speci-
fied, a 1.5 inch left margin will offset the image.
Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?.
Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the original PPM maxval was
greater than 100, rescaling also reduces the image depth. While the actual RGB values from the ppm file are more or less retained, the
color palette of the LJ250 may not match the colors on your screen. This seems to be a printer limitation.
Copyright (C) 1991 by Rick Vinci.
26 April 1991 ppmtosixel(1)