I have one me.txt file like
aaa 765 gfre 534 jhk 321
cvvb 98 hftg 2 bdg2 hfuk 65
etc..
now I want to remove all numbers form that file using shell script and out put will be printed in me1.txt
output:
aaa gfre jhk
cvvb hftg bdg hfuk
please help me. (2 Replies)
I have 10,000 lines to remove the commas after the 3rd column. Any help will be appreciated!
Removing commas after the 3rd column
Input
aaaaa,bbbbb,cccccc,ddddddd
aaaaa,bbbbb,cccccc
aaaaa,bbbbb,cccccc,ddddddd,eeeeee
aaaaa,bbbbb,cccccc,ddddddd,eeeeee,fffffff........(limit of comma is not... (13 Replies)
I have a csv file with lines like the followings
123456,"ABC CO., LTD","XXX"
789012,"DEF LIMITED", "XXX"
before I bcp this file to database, the comma in "CO.," need to be removed first.
My script is cat <filename> | sed 's/"CO.,"/"CO."/g'
but it doesn't work. Can anyone here able to... (2 Replies)
Hi,
I have a requirement wherein, I need to validate a user input of the numbers that are comma separated.
E.g . The input should be in the format 1,2,3...n (count of numbers is not known) . The user has to mention the input in this format, else it should exit from the program.
... (5 Replies)
Hi all,
I have a file consisting of lines in such a format: separated by space and M1 EOS for fullstop (.) ]
e.g
M1 I
M1 have
M1 a
M1 file
M1 consisting
M1 of
M1 lines
M1 in
M1 such
M1 a
M1 format
M1 EOS
M2 This
M2 is
M3 an (4 Replies)
Hi,
Below is a scattered representation of numbers .
1 2
11 22
11 22
1 2
1 2
11 22
1 2
11 22
I need to display only the following sequence "" and delete of the remainder from the output. The output should look like (2 Replies)
Using awk or sed, I'd like to remove leading spaces after a comma and before a right justified number in field 6. Sounds simple but I can't find a solution. Each field's formatting must stay intact.
Input:
40,123456-02,160,05/24/2012,02/13/1977, 10699.15,0
Output:... (5 Replies)
I have tried the following commands and can't get a number to format with commas:
echo 1234567.12 |awk '{printf("%-12s %20s\n", $0, comma($0)) }'
This prints out value 50000 without a comma
for i in *13*; do (cd $i && du -sk . && echo $i);done|grep -v 0000|gawk -F OFS="," ' {SUM += $1}... (8 Replies)
Hi Experts,
Please support
I have below data in file in comma seperated, but 4th column is containing comma in between numbers, bcz of which when i tried to parse the file the column 6th value(5049641141) is being removed from the file and value(222.82) in column 5 becoming value of column6.
... (3 Replies)
I need to sum up the values in field nr 5 in a data file that contains some file listing. The 5th field denotes the size of each file and following are some sample values.
1,775,947,633
4,738
7,300
16,610
15,279
0
0
I tried the following code in a shell script.
awk '{sum+=$5} END{print... (4 Replies)
Discussion started by: krishmaths
4 Replies
LEARN ABOUT V7
ppmcolormask
ppmcolormask(1) General Commands Manual ppmcolormask(1)NAME
ppmcolormask - produce mask of areas of a certain color in a PPM file
SYNOPSIS
ppmcolormask color [ppmfile]
DESCRIPTION
Reads a PPM file as input. Produces a PBM (bitmap) file as output. The output file is the same dimensions as the input file and is black
in all places where the input file is the color color, and white everywhere else.
The output of ppmcolormask is useful as an alpha mask input to pnmcomp. Note that you can generate such an alpha mask automatically as you
convert to PNG format with pnmtopng(1). Use its -transparent option.
ppmfile is the input file. If you don't specify ppmfile, the input is from Standard Input.
The output goes to Standard Output.
You can specify color five ways:
o An X11-style color name (e.g. black).
o An X11-style hexadecimal specifier: rgb:r/g/b, where r g and b are each 1- to 4-digit hexadecimal numbers.
o An X11-style decimal specifier: rgbi:r/g/b, where r g and b are floating point numbers between 0 and 1.
o For backwards compatibility, an old-X11-style hexadecimal number: #rgb, #rrggbb, #rrrgggbbb, or #rrrrggggbbbb.
o For backwards compatibility, a triplet of numbers separated by commas: r,g,b, where r g and b are floating point numbers between 0
and 1. (This style was added before MIT came up with the similar rgbi style.)
SEE ALSO pgmtoppm(1), pnmcomp(1), pbmmask(1), ppm(5)AUTHOR
Bryan Henderson (bryanh@giraffe-data.com)
14 April 2000 ppmcolormask(1)