10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Anyone can help using SED searches a character string for a specified delimiter character, and returns a leading or trailing space/blank.
Text file :
... (2 Replies)
Discussion started by: fspalero
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
how to find last occurence of a string
for example in the following I want last occurence of '-' i.e. position 12
my pupose is to get the string 'ee'
Thanks and Regards
Chetanz (5 Replies)
Discussion started by: Chetanz
4. 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
5. Shell Programming and Scripting
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
Discussion started by: haggismn
6. Shell Programming and Scripting
I need to find the index of last '|' (highlighted in bold) in awk :
Please suggest a way... Thanks (5 Replies)
Discussion started by: joyan321
7. 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
8. 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
9. Shell Programming and Scripting
I want to change the first/or any character of a string to upper-case:
Test or tEst or teSt or tesT
thanks (6 Replies)
Discussion started by: prkfriryce
10. Shell Programming and Scripting
I have tried many times to add the string into the first line of the file or the middle of the file but could not find the solution.
I first tried by
$echo "paki" >> file
This code only append paki string at the end of file "file" but how can i add this "paki" into the first line or... (5 Replies)
Discussion started by: ali hussain