Sponsored Content
Full Discussion: Lines with comma
Top Forums Shell Programming and Scripting Lines with comma Post 303043559 by vgersh99 on Friday 31st of January 2020 12:09:52 PM
Old 01-31-2020
Quote:
Originally Posted by MadeInGermany
^ beginning of the line
, a comma
So it prints all lines that start with a , i.e. if the 1st field is empty.
Perhaps you want to only print if all fields are empty?
BTW it is better to put the RegularExpression string in quotes, in order to avoid unwanted substitiutions from the shell : '^,'
... or anything BUT commaS
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Joining three lines with comma separation

I have a file that looks like this: G. KRESSLAR 9618 W. APPALOOSA DRIVE SUN CITY, AZ 85373 SHIRLEY ALLEN 7272 W. VIA MONTOYA DRIVE GLENDALE, AZ 85310 LOUIS VALDEZ 244441 N. 86TH AVENUE PEORIA, AZ 85383 DONNA NEWBON 3231 W. DENTON #D PHOENIX, AZ 85017 SARAH WILSON 6534 W. PALO... (3 Replies)
Discussion started by: BCarlson
3 Replies

2. Shell Programming and Scripting

Place a comma on lines

Is it possible to place a comma in the desired places, like 10spaces after or 15 spaces after, irrespective of the contents??? Ex:File: TEST TEST: vimalthomaswants to place a comma can he do it in the desired places? as per the above file, i need to place a comma after 10th space... (4 Replies)
Discussion started by: vj8436
4 Replies

3. Shell Programming and Scripting

Script to Check & Edit Content of a file (Addition of comma in each lines of code)

Hi all, I need to write an automated bash shell script which performs such operations: 1. Grep the header of everyline with the initial of "T" in "FILE_A" 2. Perform a for loop, Count the numbers of comma in the line of code, if (no. of comma < 17) ADD the comma until 17; ... (2 Replies)
Discussion started by: big_nutz
2 Replies

4. UNIX for Dummies Questions & Answers

sort comma separated lines by specific columns

Hello, I have a file which lines' words are comma separated: aa, bb, cc, uu b, ee, ff bb, cc, zz, ee, ss, kk oo, bb, hh, uu a, xx, ww tt, aa, dd, yy aa, gg I want to sort first by second column and in case of tie by fourth column with sort command. So the output would be: ... (4 Replies)
Discussion started by: asanchez
4 Replies

5. Shell Programming and Scripting

Make multiple lines into single quoted comma separated Linux

Hi, I want to change a file file1.txt: 1234 3456 2345 6789 3456 2333 4444 As, file2.txt in Linux: '1234','3456','2345','6789','3456','2333','4444' Could someone please help me. (Single liner sed, awk will be welcome!) (7 Replies)
Discussion started by: wiweq05
7 Replies

6. Shell Programming and Scripting

Combining multiple block of lines in one comma separated line

Hi Everyone, On my Linux box I have a text file having block of few lines and this block lines separated by one blank line. I would like to format and print these lines in such a way that this entire block of lines will come as single comma separated line & again next block of lines in next... (7 Replies)
Discussion started by: gr8_usk
7 Replies

7. UNIX for Dummies Questions & Answers

How to convert a comma delimited string to records or lines of text?

Hi, I am not sure if I've posted this question before. Anyway, I previously asked about converting lines of text into a comma delimited string. Now I am needing to do the other way around ... :( :o Can anyone advise how is this possible? Example as below: Converting records/lines to... (2 Replies)
Discussion started by: newbie_01
2 Replies

8. Shell Programming and Scripting

Comma separated values to individual lines

My OS : RHEL 6.7 I have a text file with comma separated values like below $ cat testString.txt 'JOHN' , 'KEITH' , 'NEWMAN' , 'URSULA' , 'ARIANNA' , 'CHENG', . . . . I want these values to appear like below 'JOHN' , 'KEITH' , 'NEWMAN' , 'URSULA' , 'ARIANNA' , 'CHENG', .... (4 Replies)
Discussion started by: kraljic
4 Replies

9. Shell Programming and Scripting

awk to parse comma separated field and removing comma in between number and double quotes

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)
Discussion started by: as7951
3 Replies

10. UNIX for Beginners Questions & Answers

Need help on an old post - How to convert a comma delimited string to records or lines of text?

Hi, Apologies in advance to the moderator if I am posting this the wrong way. I've searched and found the solution to an old post but as it is a very old post, I don't see an option to update it with additional question. The question I have is in relation to the following post: How to... (6 Replies)
Discussion started by: newbie_01
6 Replies
IMAGE_TO_J2K(1) 						  OPENJPEG TOOLS						   IMAGE_TO_J2K(1)

NAME
image_to_j2k - convert a PNM, PGM, PPM, PGX or BMP into a J2K or JP2 file SYNOPSIS
DESCRIPTION
image_to_j2k converts an image into a JPEG 2000-encoded image OPTIONS
-ImgDir sourcedir Directory of PGM, PPM, PNM, PGX or BMP files to convert -OutFor extension J2K or JP2 output file format -i source PNM, PGM or PPM file to convert -o destination J2K or JP2 file to output to -h Display help information -cinema2k fps Digital Cinema 2K profile compliant codestream for 2K resolution. 24 or 48 fps. -cinema4k [fps] Digital Cinema 4K profile compliant codestream for 4K resolution. fps default is 24 -r ratios compression factor for successive layers, comma seperated -q psnr psnr for successive layers, comma seperated -n rescount number of resolutions -b blocksize width and height of code block, comma-seperated -c precintsize width and height of precinct, comma-seperated -t tilesize width and height of tile, comma-seperated -p progression progression order, one of LRCP, RLCP, RPCL, PCRL, CPRL -s subsampling subsampling factor in X and Y, comma-seperated. Values larger than 2 can produce errors -POC orders progression order change -SOP write SOP marker before each packet -EPH write EPH marker after each header packet -M modeflags Sum of the values of the modes, as follows: 1. BYPASS (LAZY) 2. RESET 4. RESTART (TERMALL) 8. VSC 16. ERTERM (SEGTERM) 32. SEGMARK (SEGSYM) -x indexfile create an index file -ROI:quantize quantization indices upshifted for component c between 0 and 2 inclusive with an upshift of U between 0 and 37 inclusive -d imageoffset X and Y offset of the origin of the image, comma-seperated -T tileoffset X and Y offset of the origin of the tiles, comma-seperated -I use the irreversible DWT 9-7 EXAMPLE
ratios: 20,10,1 Quality 1: compress 20x; Quality 2: compress 10x; Quality 3: lossless compression psnr: 30,40,50 quantize: c=0,U=25 orders: T1=0,0,1,5,3,CPRL Title 1: Resolution 0 start, component 0 start, layer 1 end, resolution 5 end, component 3 end, CPRL progression AUTHOR
Written by Paul Hampson <Paul.Hampson@Pobox.com> based on the output of image_to_j2k -h as part of the Debian packaging of OpenJPEG COPYRIGHT
Copyright 2007 Paul Hampson SEE ALSO
j2k_to_image(1), <http://www.openjpeg.org/index.php?menu=doc#encoder> 1.3+dfsg 2014-04-22 IMAGE_TO_J2K(1)
All times are GMT -4. The time now is 03:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy