10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am looking for to filter out based on 7th character and list the number of occurrence based on the 7th character if p , d , o or m
1. if 7th character is p , Output should be: p_hosts = N
2. if 7th character is d , Output should be: d_hosts = N
3. if 7th character is o , Output... (10 Replies)
Discussion started by: rveri
2. 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
3. Shell Programming and Scripting
I want to check if a delimiter is existing twice in a line of a text file.
Suppose flat file is like this
234 | 123
123 | 345
456 | 563 |
234 | 548
So the the 3rd line has two delimiters,
How can we find the lines in such a file having more then one delimiters
I tried... (5 Replies)
Discussion started by: nnani
4. Shell Programming and Scripting
I need help on this ..!!
Now i required the output as the below
Need to remove last occurrence of character (_) and rest of the string in Unix (sed).
Thanks in Advance ..!!!
-Nallachand (3 Replies)
Discussion started by: Nallachand
5. Shell Programming and Scripting
Is there a way to find a string in a file then append a character to that string then save the file or save to another file.
Here is an example.
I want to find all NON NULL String and add a dollar sign to those... (9 Replies)
Discussion started by: brichigo
6. Shell Programming and Scripting
I have requirement to find nth occurrence in a file and capture data from with in lines (between lines)
Data in File.
<ATTRIBUTE NAME='Parameter Filename' VALUE='file1.parm'/>
<ATTRIBUTE NAME='Service Name' VALUE='None'/>
<ATTRIBUTE... (6 Replies)
Discussion started by: tmalik79
7. Shell Programming and Scripting
It should print "m".
What's the command to do this with sed? (6 Replies)
Discussion started by: cola
8. Shell Programming and Scripting
Hi, I am totally new to shell scripting.
I have a String "c:\working\html\index.txt.12-12-2009.bkp" I want to check if the string has more than one "." character. If it does I would like to retrieve only "c:\working\html\index.txt" i.e, discard the second occurrence of "." and the rest of the... (7 Replies)
Discussion started by: imr
9. Shell Programming and Scripting
I have a UNIX file in which data is like this --
ISA*00* *00* *01*006415160 *01*137361242 ... (3 Replies)
Discussion started by: The Observer
10. UNIX for Dummies Questions & Answers
My problem is the following:
I've a script that must list all files in a directory and write this information in a text file.
I've tried to get the list through ls command and then write it using msgecho
msgecho "`ls $PATH_APS_JOB_ORA`"
This works good but the created string... (7 Replies)
Discussion started by: callimaco0082