10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello guys, would you please help me with this?
this is the line inside a file:
first line Something Today YYDDPPSVXIPYYY0XXXOFFS00000000000?
I'd like to find the position of string XXX from string PYYY
In the example above
XXX starts from 6th position from PYYY
desired... (4 Replies)
Discussion started by: netrom
2. Shell Programming and Scripting
I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
3. Shell Programming and Scripting
i want command or script to display the content of file from 2nd position to last but one position of a file
i want to display the same above file without first and... (2 Replies)
Discussion started by: hemanthsaikumar
4. Shell Programming and Scripting
Hi guyz i want to know nth position of character in string. For ex.
now if we see 1st occurance of , is at 3 position, 2nd at 6,..4th at 13 position.
1st position we can find through INDEX, but what about 2nd,3rd and 4th or may be upto nth position. ?
In oracle we had... (2 Replies)
Discussion started by: Jonty Immortal
5. UNIX for Dummies Questions & Answers
Can anyone let me know the command to know the list of filenames that have string 31 in their 4th and 5th positions inside the file:
grep -l "31" main*.txt
The above grep lists all the files which have 31 at any position but I want filenames having 31 at position 4 and position 5. (8 Replies)
Discussion started by: okkadu
6. Shell Programming and Scripting
I have a file with the below format,
RMR*123455(This is the unique number to locate this row)
RMR*567889(This is the unique number to locate this row)
GE***** (16 Replies)
Discussion started by: Muthuraj K
7. Shell Programming and Scripting
I have a file named "Test_2008_01_21"
The file contains a string "manual" that occurs many times in the file
How can i find the positions of the string "manual" in the file
Ex: if the string " manual " occurs three times in the file. i want to replace the second occurance of string... (6 Replies)
Discussion started by: bab123
8. UNIX for Dummies Questions & Answers
I am a newbie in unix programming so maybe this is a simple question.
I would like to know how can I make a script that outputs only the values that are not between any given start and end positions
ID6... (9 Replies)
Discussion started by: fadista
9. Shell Programming and Scripting
I have a string like
str = "14: Jan 29 13:27:12 : Processor----: : Start of splitting file
from this, i have to find the position or location number starting for "Processor". I have to extract date from this entire string.
string which i will give will not have fixed length. ... (2 Replies)
Discussion started by: balareddy
10. Shell Programming and Scripting
I have a file with all fields defined by byte position, but any field can be empty so I cannot print lines based on a search of specific columns. I need to print all lines of this file where the string of two characters at byte position 100-101 contains the number 27. Any ideas?
... (4 Replies)
Discussion started by: HealthyGuy