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
I am having contents in a file like below,
I want to sort the above contents like,
I have tried in this way, (7 Replies)
Discussion started by: Sumanthsv
3. Shell Programming and Scripting
Trying to combine strings that are a partial match to another in $1 (usually below it). If a match is found than the $2 value is added to the $2 value of the match and the $3 value is added to the $3 value of the match. I am not sure how to do this and need some expert help. Thank you :).
... (2 Replies)
Discussion started by: cmccabe
4. Shell Programming and Scripting
I need replace part of string in a file.
I need replace the value after ABC=, highlighted in red. I want to get following result;
Anybody can help me this.
... (8 Replies)
Discussion started by: ken6503
5. Shell Programming and Scripting
I have a list of strings in file:
10 10 AAA
120 13 BBBBB
23 11 CCCCC
11 32 DDDDDD
I want to replace first column of the text such as: 10, 129, 23, 11 with 11, 22, 33, 44.
I can do line by line, but just not sure how to replace partial string without... (1 Reply)
Discussion started by: ford99
6. Shell Programming and Scripting
i've a string
i need to extract string from 2011.... i.e i need it as 20110622_000005_TEST_11_HD_120 as matched string, and in turn i need to split values 20110622_000005_TEST_11_HD_120 into two.... (6 Replies)
Discussion started by: asak
7. Shell Programming and Scripting
Hello, this is probably a simple request but I've been toying with it for a while.
I have a large list of devices and commands that were run with a script, now I have lines such as:
I want to print everything up to (and excluding) the # and everything after it... (3 Replies)
Discussion started by: ippy98
8. Shell Programming and Scripting
$d = "12.02222222222";
$d =~ s/(.*).(.*)/$1/e;
The output should be just 12.
Please guide me my expression wrong.
Thanks (5 Replies)
Discussion started by: jimmy_y
9. UNIX for Advanced & Expert Users
Id like to delete a line from a file using (preferably a single line unix command) if it contains a certain string pattern.
If line contains "abcdef" then delete that line.
Help greatly appreciated. (7 Replies)
Discussion started by: cronjob78
10. Shell Programming and Scripting
I'm new here and i have a Q...
How do i get only the number from a string?
like from "rlvol11" i want to get 11
or from "lvol4" i want to get 4
what commands should i use at my script?
thanx 4 the help!
Eliraz. (13 Replies)
Discussion started by: eliraza6