Hi
Here is the problem ( Exercise 3-3, Using The Shell of The Unix Programming Environment, Kerninghan, Pike, 3rd edition ):
Predict what each of the following grep commands will do, and then verify your understanding.
Code:
grep \$
grep \\$
grep \\\$
grep '\$'
grep '\'$'
grep \\
grep \\\\
grep "\$"
grep '"$'
grep "$"
A file containing these command
Hi Friends,
I have a text file like this
Code:
cat main.txt
I like this website
cat website > new_website
grep website > hello_website
Code:
cat replace.txt
hello
unix
apple
Now, for each line read in 2.txt, I want the pattern "website" in 1.txt to be replaced with it.
Hi,
I have problem with parameter configuration.
My question is after the configuration, how to check if successfully change the value or not?
I saw someone has the same question, and followed his steps.
Original thread:
http://www.unix.com/unix-dummies-questions-answers/82824-linux-kernel-module-parameters.html"]http://www.unix.com/unix-dummies-questions-answers/82824-linux-kernel-mod
Hi Folks,
I have an process named IL , for this initally we see the status of this process by
Code:
PS|ef grep IL
, Please explain what is the role of grep and what this commands do from unix point of view..!!
Moderator's Comments:
edit by bakunin: i could be wrong, but usually when somet
Hi,
I have a list of urls in my input.txt file like this
input.txt
Code:
http://unix.com/index.html?acc=OSR765454&file=filename1.gz
http://unix.com/index.html?acc=OBR765454&file=filename111.gz
http://unix.com/index.html?acc=ORS765454&file=filename1111.gz
http://unix.com/index.html?acc=OST76454&file=filename11111.gz
http://unix.com/index.html?acc=OS5454&file=filename1111
Guys,
I'm a newbie for UNIX. I want to grep the last characters after the last "-" sign.
eg:
abcd-231-1-44
abcd-2341-22-55
abcd-1-23-6
In the above example. I want to grep just the last characters after the 3rd "-" sign. line1 it will be 44. line2 55 and line3 6
TIA
I am not familiar with all aspects of Unix/linux, though I use it everyday. I learned it by myself.
Here I have a simple question. I would like to have your kind helps.
In my file, there are this string ˆ@ˆ@ˆ@ˆ@ˆ@ˆ@ , I just want to delete all lines with this string. For example, using sed or grep command.
And I would like to know why there is such string occurred in my file.
I've just recently started using a Unix server, and I've been trying to figure out how to use the grep command to search a file of mine for all 4-letter words that begin with 's' (I don't care if its uppercase or lowercase) and have an 'r' as the third letter. I've tried many grep variations but none of them have returned properly with what I need. All help is appreciated, thanks.
Greetings!
please help on this.. i do not think the value of i is getting passed to the index(i).html section, as there is no output written into cloud file..