01-30-2020
Hello pranabpal,
In UNIX.com we encourage users to add 3 simple things.
1- Sample of Input in CODE TAGS.
2- Sample of expected output in CODE TAGS.
3- Most important thing, add efforts which you have put in order to solve your own problem in CODE TAGS.
Your question doesn't have any of them, so please EDIT your question and let us know then.
Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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
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
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
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
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
IPTC(1) [FIXME: manual] IPTC(1)
NAME
iptc - Utility for viewing and modifying the contents of IPTC metadata in images.
SYNOPSIS
iptc [[-q] | [--quiet]] [[-b] | [--backup]] [[-s] | [--sort]] [[-v VALUE] | [--value=VALUE]] [[[-l] | [--list]] [[-L TAGS] |
[--list-desc=TAGS]] [[-a TAGS] | [--add=TAGS]] [[-m TAGS] | [--modify=TAGS]] [[-d TAGS] | [--delete=TAGS]] [[-p TAGS] |
[--print=TAGS]]] [--help] [--version] [file...]
DESCRIPTION
This manual page documents briefly the iptc command.
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.
iptc is a IPTC data editor. You can add, modify and delete ITPC metadata in images. You can also get the value of a particular tag.
-q, --quiet
Produce less verbose output.
-b, --backup
Backup any modified files.
-s, --sort
Sort tags before displaying or saving.
--help
Display an help message and exit.
--version
Display an iptc version number and exit.
-l, --list
List the name of all known tags (i.e. Caption, etc).
-L TAG, --list-desc=TAG
Print the name and description of TAG.
-a TAG, --add=TAG
Add new tag with identifier TAG.
-m TAG, --modify=TAG
Modify tag with identifier TAG (add if not present).
-v VALUE, --value=VALUE
Value for added/modified tag.
-d TAG, --delete=TAG
Delete tag with identifier TAG.
-p TAG, --print=TAG
Print value of tag with identifier TAG.
file
Files to edit.
EXAMPLES
Display the IPTC metadata contained in image.jpg: iptc image.jpg
Set caption "Foo" in all jpegs of the current dir: iptc -m Caption -v "Foo" *.jpg
Add keyword "vacation" to all jpegs: iptc -a Keywords -v "vacation" *.jpg
LICENSE
This manual page was written by Sylvain Le Gall gildor@debian.org for the Debian GNU/Linux system (but may be used by others). Permission
is granted to copy, distribute and/or modify this document under the terms of the GNU Lesser General Public License, Version 2.1 or any
later version published by the Free Software Foundation; considering as source code all the file that enable the production of this
manpage.
AUTHOR
Sylvain Le Gall <gildor at-smtp-server debian.org>
Author.
COPYRIGHT
Copyright (C) 2007 Sylvain Le Gall
[FIXME: source] Jan 17, 2007 IPTC(1)