10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All!!
I have a large file containing millions of records. My purpose is to extract 8 characters immediately from the given file.
222222222|ZRF|2008.pdf|2008|01/29/2009|001|B|C|C
222222222|ZRF|2009.pdf|2009|01/29/2010|001|B|C|C
222222222|ZRF|2010.pdf|2010|01/29/2011|001|B|C|C... (5 Replies)
Discussion started by: pavand
5 Replies
2. UNIX for Beginners Questions & Answers
Hi All,
I am trying to extract only characters from a string value eg: abcdedg1234.cnf
How can I extract only characters abcdedg and assign to a variable.
Please help.
Thanks (2 Replies)
Discussion started by: abhi_123
2 Replies
3. Shell Programming and Scripting
* hdisk99 U5791.001.9920BZ4-P1-C05-T1-W500507630E060C14-L401140BA00000000 IBM MPIO FC 1750
* hdisk100 U5791.001.9920BZ4-P1-C05-T1-W500507630E060C14-L401140BB00000000 IBM MPIO FC 1750
* hdisk185 U5791.001.9920BZ4-P1-C05-T1-W500507630E060C14-L401140A000000000 IBM MPIO FC... (2 Replies)
Discussion started by: Daniel Gate
2 Replies
4. Shell Programming and Scripting
trying to extract the numbers in this file name:
fname="ebcdic.f0633.cmp_ebcdic.f0633.bin"
fnametmp=${fname#*(V|v|F|f)}
parse=${fnametmp%%(ENC|enc|CMP|cmp|BIN|bin)}}
echo FLRECL=$parse
result is FLRECL=0633.cmp_ebcdic.f0633
expected result FLRECL=0633
my guru is on holiday and i need... (5 Replies)
Discussion started by: mambo2523
5 Replies
5. Shell Programming and Scripting
Hi,
how can i extract a data between two characters
input file is
abc efg hig - 99.4% (16337276 kB) used
efg klm - 47.1% (7734968 kB) used
hij - 99.4% (16341464 kB) used
klm -93.7% (15394516 kB) used
output should be
99.4 (5 Replies)
Discussion started by: jobycxa
5 Replies
6. Shell Programming and Scripting
Hi All!!
I have a large file containing millions of record. My purpose is to extract 7 characters immediately after text '19' from this file (including text '19') and save the result in new file.
So, my OUTPUT would be as under :
191234561
194567894
192789005
198839408
and so on.....
... (7 Replies)
Discussion started by: parshant_bvcoe
7 Replies
7. Shell Programming and Scripting
Hi Guys!!!!!!!!!!!
How do we extract last 13 characters from a line
I/p:
.R1/new/sv902a.01.per
O/p:
sv902a.01.per
And the no of characters differs in each line..
Kindly help me out in this!!!!!!!!!!!
Thanks in Advance (4 Replies)
Discussion started by: aajan
4 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I have scenario as below,
I want to cut the characters and store it variable2.. and want to display the variable2.. as shown below...
eg: the size may differs , i am show just an example.....
numbers are not fixed in variable1..i want to extract characters and... (1 Reply)
Discussion started by: G.K.K
1 Replies
9. Shell Programming and Scripting
I want to extract a string from a line in a text file between two different characters:
for example:
:string"
I want to extract string. It has to be done in a one-liner. (11 Replies)
Discussion started by: rein
11 Replies
10. Shell Programming and Scripting
Hi,
Please let me know how do we write a piece of code to extract characters from a line using SED. (1 Reply)
Discussion started by: Shilpi
1 Replies