Paste a word in the third field position of a file
Hi All,
I have a file like this,
The above line is a comma separted data file. I want to modify the third field
to
The final data file should be like
NOTE: My shell is ksh.
Could you guys help me to write a shell script for this!.
Thanks in advance.
Giri.
Use CODE tags next time please, ty.
Last edited by zaxxon; 08-17-2009 at 05:14 AM..
Reason: CODE tags
Hello everybody,
I have a file like this : "window 1 truck 3 duck 2... fire 1... etc..." and I would like to print the following number of a word I am searching for. (For example here, if I search for the word "fire", I will print "1")
Thank you for your help ! (7 Replies)
To trim 3rd field in for all the lines of a file and replace the modified string in that particular field.
For example i have a file called Temp.txt having content
Temp.txt
-----------------
100,234,M1234
400,234,K1734
300,345,T3456
----------------
So the modified file output should... (4 Replies)
Hello,
Can anybody please tell me how we can copy and paste text from a word document into a text file that we are editing in vi? Is it possible to do that while we are editing the text file in vi in insert mode?
Thanks, (3 Replies)
Hi all,
I'm new to shell scripting and hence this query.
I have 2 files. temp.txt and config.txt.
The values in temp.txt are tab separated.
ex: temp.txt
AB CDE GHIJ OPQRS WXY
ex:config.txt (1st line for 1st element of temp.txt and so on)
start = '1' end='5'
start = '6' end =... (26 Replies)
Hi,
I am new to unix. I want to delete 2 words placed at position say for example at 23rd and 45th position in a line. I used sed but couldnt achieve this.
Example: the file contains 2 lines
12345 98765 "12345" 876
12345 98765 "64578" 876
I want to delete " placed at position 13 and 19... (4 Replies)
Hi,
Let say I have a file which has around 400 fields.
SampleFile
=========
PATIENTID|FACILITY|................|TIME_LAST_VISITED_BY_MD|.....|STATUS|
How is it possible to find out which field is TIME_LAST_VISITED_BY_MD?fro example by seeing the above structure we can saw FACILITY... (5 Replies)
I am trying to find/grep the 5th and 6th position character (TX) of a word in a file. I tried to do
grep "....TX" file
The output gives me everything in the file with TX in it. I only need the output with the TX in the 5th and 6th position of the word. Any idea
Example:
test1 car... (5 Replies)
Hi,
I need to search a file for a pattern,replace some other word and write a word at its 72nd position.
For example,
My name is Mano.Im learning Unix.
I want to search the file in all lines containing the word "Mano".In that matched line,replace the word "Unix" with "Java".And... (5 Replies)
Hi I have a text file with lines beginning with 71303, 71403, 71602,
I need to copy the 10 digit text at position 30 on lines beginning with 71303 (5500011446) to position 99 on every line beginning with 71602 (see example below),
There may be many 71303 lines but I need the text copying to... (2 Replies)
I have an input file with
A=xyz
B=pqr
I would want the value in Second Field (xyz or pqr) updated with a value present in Shell Variable based on the value passed in the first field. (A or B )
while read line
do
NEW_VALUE = `some functionality done on $line`
If $line=First Field-... (1 Reply)
Discussion started by: infernalhell
1 Replies
LEARN ABOUT OSF1
dxlicenses
dxlicenses(8) System Manager's Manual dxlicenses(8)NAME
dxlicenses - Adds, lists, issues, and deletes software product licenses
SYNOPSIS
/usr/bin/X11/dxlicenses
DESCRIPTION
When you buy software, the vendor from which you purchase the software issues an agreement called a license, which gives you authorization
to use the product. Most of the information required by the License Manager can be found on the Product Authorization Key (PAK), which is
issued by Compaq when you purchase a software license.
Use the License Manager application, dxlicenses, to: Add a licensed software product Modify a licensed software product List a licensed
software product Issue a modified license product Delete a licensed software product
The License Manager application can be invoked from the CDE Application Manager from the following categories:
Application Group: System_Admin
System Admin Subgroup: Daily Admin
In License Manager, online help is available by clicking on any Help button or by using the Help pull-down menu.
FILES
The License Manager application executable file The License Manager help volume The Directory containing License Manager application icons
The License Manager defaults file that sets the default values for the X resources
SEE ALSO
Commands: lmf(8), lmfsetup(8)
Software License Management
dxlicenses(8)