10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please can someone help with this?
I have a file with lines as follows:
word1 word2 word3 word4 word5 word6 word7 word8
word1 word2 word3 word4 word5 word6 word7 word8
word1 word2 word3 word4 word5 word6 word7 word8
word1 word2 word3 word4 word5 word6 word7 word8
When I use the... (7 Replies)
Discussion started by: Subhadeep_Sahu
7 Replies
2. Shell Programming and Scripting
there is a word "welcome"
output should be "welcome\
i am using regsub to add backslash "\" in place where ever i find square brackets (open or close)..
But i am not getting it... pls help out..
set a {welcome}
set d (5 Replies)
Discussion started by: Syed Imran
5 Replies
3. Shell Programming and Scripting
Can somebody tell me the difference between double brackets and single
brackets, when doing a test.
I have always been acustomed to using single brackets and have not
encountered any issues to date. Why would somebody use double brackets.
Ie
if ]
vs
if
Thanks to... (2 Replies)
Discussion started by: BeefStu
2 Replies
4. Shell Programming and Scripting
continuing from my previous post, whose link is given below as a reference
https://www.unix.com/shell-programming-scripting/171076-shell-scripting.html#post302573569
consider there is create table commands in a file for eg:
CREATE TABLE `Blahblahblah` (
`id` int(11) NOT NULL... (2 Replies)
Discussion started by: vivek d r
2 Replies
5. Shell Programming and Scripting
Hi All,
After searching about this, I could find some solutions but I am not sure why it is not working in my case.
I have a text file with contents between two square brackets. The text file looks like this:
Use tags when you post any code so others can easily read your code. You can... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
6. Shell Programming and Scripting
Related to :
thread : 34769-removing-duplicate-lines-file.html
i want to extract the words in ()
eg: string1="bla bla (aaa) aha hai (aa)"
after processing output i need is : aaa aa (2 Replies)
Discussion started by: linuxadmin
2 Replies
7. Shell Programming and Scripting
Hi,
Am trying to split a string with bracket in ksh but it is not splitting it correctly.
split("Hello, Name(1), Name(2)", main,",");
How do i split correctly? (3 Replies)
Discussion started by: nightrider
3 Replies
8. Shell Programming and Scripting
File A
99 >ac >ss >juk
70 >acb >defa
90 >ca
100 >aa >abc >bca
85 >cde
81 >ghi >ghij
87 >def >fgh <ijk
89 >fck >ghij >kill >aa
The given output shud be
100 >aa >abc >bca
87 >def >fgh <ijk
89 >fck >ghij >kill >aa (2 Replies)
Discussion started by: cdfd123
2 Replies
9. Shell Programming and Scripting
Hi
Thanks for this amazing forum first, I've been searching answers in it for problems that I've encountered at work.
The only problem I haven't been able to find a fix for, is a ever waiting for prompt problem in Expect when encounter a $ prompt.
I usually set the timeout to -1 cause the... (2 Replies)
Discussion started by: Ikaro0
2 Replies
10. Shell Programming and Scripting
Hi, guys. I have one question:
I need to search for a string in a file, and then extract another string from the file and assign it to a variable.
For example:
the contents of the file (group) is below:
...
ftp:x:23:
mail:x:34
...
testing:x:2001
sales:x:2002
development:x:2003
...... (6 Replies)
Discussion started by: daikeyang
6 Replies