10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi I have to extract the destination path information from each record the file is of variable length so I will not be able to use the print command.The search should start on variable "destinationPath" and it should end at immediate "," also the first field has to be printed
Input File:... (7 Replies)
Discussion started by: rkakitapalli
2. Shell Programming and Scripting
Soon I will be receiving a new file. I've asked the source system to put "TRAILER.1+0000007+1" for the trailer to indicate full receipt of file. I need to know how to separate TRAILER so I can use it in a if statement.
I used the tail command but not sure how to incorporate awk or... (11 Replies)
Discussion started by: pone2332
3. Shell Programming and Scripting
I want a string between two delimeter like ( ) from file.
2007_08_07_IA-0100-031_(January February March
April June July).PDF
January February... (19 Replies)
Discussion started by: Pratik Majithia
4. Shell Programming and Scripting
I have a very large data file with several hundred columns and millions of lines.
The important data is in the last set of columns with variable numbers of tab delimited fields in front of it on each line.
Im currently trying sed to get the data out - I want anything beetween :RES and... (4 Replies)
Discussion started by: Manchesterpaul
5. Shell Programming and Scripting
Can anyone tell me how to extract a string from a given line.
I want to extract BL012 from above.
as 102 keeps on changing i want smthing like that it extract BL and 102 extrct by its own.
Thankx guyzz (9 Replies)
Discussion started by: abhijtr
6. Shell Programming and Scripting
Need your help to assign the string to a variable from a line which has no fixed delimter in unix.
for example , my file contains
File Name one="test1"
File Name two="test2"
now how do I read report , test1 and test2 ?
... (1 Reply)
Discussion started by: rashmisb
7. Shell Programming and Scripting
In the following line:
I need to extract this string: portal.090710.191533.428571000
As you can see this string always will be bettween "cn=" and "," strings.
Someone know one regular expression to... (4 Replies)
Discussion started by: maverick-ski
8. Shell Programming and Scripting
sumdays before i had posted a query with same subject.
i got sum great help from great ppl which solved my problem then.
But now there is a small problem with the code that i need the experts help upon.
for parsing a text
where $ had been the delimiter between... (3 Replies)
Discussion started by: suresh_kb211
9. Shell Programming and Scripting
I have an input as follows:
where, "|" and ":" are delimiters
Now suppose, I want to extract the value corresponding to "param4", i.e. "value4" in this case.
In case we use awk, I want to use the value in shell... (1 Reply)
Discussion started by: gaurav_1711
10. Shell Programming and Scripting
I need some help in knowing how I can append tabs at the end of each line...
The data looks something like this:
field1, field2, field3, field4
3 4 5
I have values in field1 and field 2 in the first row and I would like to append tab on field3 and field4 for the first row..and in... (6 Replies)
Discussion started by: madhunk