10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello is it possible with awk or sed to replace any white space with the previous line characters in the same position?
I am asking this because the file I have doesn't always follow a pattern.
For example the file I have is the result of a command to obtain windows ACLs:
icacls C:\ /t... (5 Replies)
Discussion started by: nakaedu
2. Shell Programming and Scripting
I wanted a sed/awk command to add a value/character on a particular position without disturbing the position of other characters.
I have file a.txt
OL 10031 Day Black Midi Good Value P01 P07
OL 10031 Day Black Short Good Value P01 P07
I want to get the output as... (2 Replies)
Discussion started by: rahulsk
3. 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
4. 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
5. Shell Programming and Scripting
Hello. I'm trying to delete one character in determinate position.
<delete character in positión 3>
Plase, help me.
Thanks (4 Replies)
Discussion started by: maria_florencia
6. Shell Programming and Scripting
I don't have experience programing scripts. I need to insert a string in a specific position of another string on another file (last.cfg), for example:
File last.cfg before using script:
File last.cfg after using script:... (4 Replies)
Discussion started by: vanesuke
7. 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
8. Shell Programming and Scripting
I am new to linux and was trying to split some files userwise in our linux server.
I have a data file of 156 continuous columns named ecscr final.
I want the script to redirect all the lines containing a pattern of 7 digits to separate files. I was using grep to do that,... (2 Replies)
Discussion started by: anoopvraj
9. Shell Programming and Scripting
I need a script for...
how to find a position of column data and print some string in the next line and same position
position should find based on *HEADER8* in text
for ex: ord123 abs 123 987HEADER89 test234
ord124 abc 124 987HEADER88 test235
... (1 Reply)
Discussion started by: naveenkcl
10. Shell Programming and Scripting
I'm trying to translate a fixed length (the first 6 positions) that begins with a 0 to overwrite the field with an *.
File 2 (result)
233333 20:30 (5 Replies)
Discussion started by: peterk