Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Shell scripting question
Name: Benn Date: October 23, 2002 at 11:05:48 Pacific OS: unix CPU/Ram: 20000 meg
Comment:
Hi, my problem is as follows I have a file in the following format -------------starts here------------ /usr/bin/perl -w ./bomber tcsh /usr/bin/perl -w ./killer . .. .... ---------end here---------- Now what i have to do is take each line in the file (each line should be taken as a whole string) and pipe that string to pgrep. Any clues how this could be done?
What i want is something like this pgrep -f $line where $line should store a line from the file. And i also need to loop for every line of the file.
Summary: Hello, I'm a shell script learner. Could you do me a favor to tell me what is it. $(($*)) actually I don't understand the meaning of double quotes. why below 3 entrys give me 3 different results? prin...
Summary: I feel that this is pretty strait-forward, so I hope someone can help me out. I want to write a shell script inside the linuxrc file of an initrd image that involves an "if" statement. What would be t...
Summary: Thanks, its greatly appreciated. I had to change the "print" to "echo" in the shell script and it worked fine, apart from inserting the current file after the "Summary:" so I did that in sed first...