10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi. I'd like to remove all values in a string variable that also exist in a second variable. What is the appropriate approach to take here? I can use a 'For' loop and check each element and then populate a new string. But is there a cleaner, simpler way?
E.g. I have the following 2 variables ... (19 Replies)
Discussion started by: user052009
2. UNIX for Dummies Questions & Answers
I'm having trouble with a text file.
It looks like this:
Alvaro Costa Daldit Kaur Sings Brian G Heward
Desmond Ogilvie John Der William Gherasim
Lance Mackey Donald Kopplin Robert Mckinlay
Jahir Hussain Mohamed Jack Benaim Abraham Weiss
I want... (7 Replies)
Discussion started by: galford
3. Shell Programming and Scripting
Hi, I have a variable with grep output like this:
WORDS=$(grep -r -c -i -E "palindrom" /"$DIRECTORY"/)
so "echo "$WORDS"" could be:
I need to "sed" my variable... (3 Replies)
Discussion started by: Hornys
4. Shell Programming and Scripting
I want to update the file with a value at a particular position
I want to update the file with a value for COL2.
After update, the file should be like this
here 1... (9 Replies)
Discussion started by: vedanta
5. UNIX for Dummies Questions & Answers
I am currently having problems in mapulating a certain file which contains vaious data.
Belos is a sample content
Client IP=<18.104.22.168> DNS=<abc.sbc.com> TransCount=<139>
Client IP=<22.214.171.124> DNS=<xyz.yuu.com> TransCount=<3734>
Client... (11 Replies)
Discussion started by: khestoi
6. Shell Programming and Scripting
I have a variable say var1 (output from somewhere, which I can't change)which store something like this:
how can I make the variable $name, $age, $address and $password contain the info?
I mean do this in a... (1 Reply)
Discussion started by: freddy1228
7. Shell Programming and Scripting
In a bash script I've set a variable that is the directory name of where an executable lives.
the_dir=`dirname $which myscript`
which equates to something like "/path/to/dir/bin"
I need to cut that down to remove the "bin" so I now have "/path/to/dir/".
This sounds easy but as a... (2 Replies)
Discussion started by: Witty
8. Shell Programming and Scripting
First of all I am VERY new to this so bare with me and try and explain everything even if it seems simple.
Basically I want to read a line of text from a html file. See if the line of text has a certain string in it. copy an unknown number of characters (the last 4 characters wiil be ".jpg" the... (1 Reply)
Discussion started by: c3lica
9. Shell Programming and Scripting
I need to achieve the following.....I seached the forum but could not find it...
This is I have in a file...
I need the date in the third field to be attached to fileas 20061027_test.txt
How do I do it. (6 Replies)
Discussion started by: mgirinath
10. UNIX for Dummies Questions & Answers
i have got a table with n number of rows and 2 columns..how can i get get 1 row at a time using any unix command without copying to any file?
Thanks and Regards
vivek.s (13 Replies)
Discussion started by: vivekshankar