shell-commands

How can I assign the match of my regular expression to a variable?

I have a text file with various entries in it. Each entry is ended with line containing all asterisks. I'd like to use shell commands to parse this file and assign each entry to a variable. How can I do this? Here's an example input file: *********** Field1 *********** Lorem ipsum Data to match *********** More data Still more data *...

Execute a shell command from a .net application

I need to execute a shell command from my .NET app, not unlike os.execute(a little ways down on that page) in Lua. However with a cursory search i couldn't find anything, how do i do it? ...

how to read file line by line in shell script and store each line in a variable.

hi all, i am new in unix. i have to write a shell script which read a file line by line and store it in a separate variable. my text file contents multiple source path and one destination path. something like this:: source_path=abc/xyz source_path=pqr/abc desination_path=abcd/mlk number of source path can vary. I dont have much hands ...