10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this.
string(Scenario 1)- user::r--,user::ourfrd:r--
String(Scenario 2)- user::r--
# file: /local/Desktop/myfile
# owner: me
# group:... (6 Replies)
Discussion started by: sarathy_a35
2. Shell Programming and Scripting
Please help me with a command which greps the exact match of the string which I am searching in a file.
For examplecat > file
In the above file I just wanted to display abc which is first entry.
When I execute grep command cat file | grep "abc" it results... (3 Replies)
Discussion started by: madhuraju
3. Shell Programming and Scripting
I have filenames coming as
How do I extract the version number in a variable
extracted into variable
by Unix script (3 Replies)
Discussion started by: sparsh2012
4. Shell Programming and Scripting
I have a string
string="Please have a nice day and sleep well Replace_12123_31233_32134_12342 Good day"
How do i replace "Replace_12123_31233_32134_1234" in the above string.??
Qwerty (3 Replies)
Discussion started by: qwertyu
5. Shell Programming and Scripting
Supposed I have a string in the format:
<service_name> = <ldap user FDN> : <password>
DNS = cn=user1,o=company : pwd
I want to tokenize like:
Because of the '=' sign between Service Name and LDAP Name I not... (8 Replies)
Discussion started by: saurabhkoar
6. Shell Programming and Scripting
Hi I need how to sort string characters
for Example i have a file that contains this data
example string "fan" but i want to display "afn" contained words
"afn" is in sorted format for fan.
gafnniunt (3 Replies)
Discussion started by: polineni
I need some help.
when i use the following command, it deletes all lines containing WINNT& v2010 and WINNT& v2010.2
I just want it to delete lines containing WINNT & v2010 only.
perl -n -i.bak -e 'print unless /WINNT/&&/v2010/' *.*
Danish (2 Replies)
Discussion started by: sdanish110
8. Shell Programming and Scripting
I have a string that looks like this:
I need to extract substring, the bit between the ^ characters, into another string variable. This will be in a bash shell script.
Thanks. (2 Replies)
Discussion started by: daflore
9. UNIX for Dummies Questions & Answers
i need to split a line using a delimiter, and store it into a array :( (2 Replies)
Discussion started by: lmadhuri
10. Shell Programming and Scripting
One of the monitoring tools in Java is called `jps`, and it monitors all Java processes that are run by the user, an example output would be like this:
where the first column represents Process IDs and the second column represents Java processes names.... (8 Replies)
Discussion started by: neked