10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
i have 2 files :
2)... (10 Replies)
Discussion started by: teokon90
2. Shell Programming and Scripting
I have a requirement where i need to split a file based on occurence of a character which is present at a fixed position. Description is as below:
1. The file will be more than 1 Lakh records.
2. Each line will be of fixed length of 987 characters.
3. At position 28 in each line either 'C' or... (9 Replies)
Discussion started by: Neelkanth
3. Shell Programming and Scripting
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
test1 car... (5 Replies)
Discussion started by: e_mikey_2000
4. Shell Programming and Scripting
I am unable to find the right option to extract the data in the fixed width file.
hujk9876 io xgla
Search based on position 8-9="xg" and print the entire row
... (4 Replies)
Discussion started by: onesuri
5. Shell Programming and Scripting
i want find the character '-' in a file from position 284-298, if it occurs i need to replace it with 'O ' for the position in the file. How to do that using SED command.
thanks in advance,
Sara (9 Replies)
Discussion started by: Sara183
6. Shell Programming and Scripting
I want to remove the trailing spaces at the end of each line starting from a particular position(using ksh script). For example, in the attached file, I want to remove all the spaces starting from the position 430 till the end. The space has to be removed only from the 430th position no matter in... (3 Replies)
Discussion started by: Suryaaravindh
7. Shell Programming and Scripting
I want to insert space in 7th position of all the lines usign vi editor or sed command
. (7 Replies)
Discussion started by: Jairaj
8. Shell Programming and Scripting
I have a .DAT file like below.
26666666660001343 000001004OLF 029100020090820
28888888880000780 000001013OLF 006500020090820
and so on.....
I want to append each line in a file in .KSH script with XXX with position... (5 Replies)
Discussion started by: kshuser
9. Shell Programming and Scripting
I'm having headache on append one line to another based on the fix position.Hope u guys can help.
All i need to do is append the line that start with '3' to a line which start with '1' and the position for line 3 that i need to append is 22.
The original file look like this:
... (2 Replies)
Discussion started by: ashikin_8119
10. UNIX for Dummies Questions & Answers
I am required to view the fixed postion file very often . I am looking for the utility like this
if the file has a one or multile line
Utility should make my file look like this
abcdefghijk l m n o p q r ... (4 Replies)
Discussion started by: akrathi