sed - Seperate quotes and arguments

So, I'm trying to get a script I'm working on to run another script in different directories with different arguments as defined in a text file. Here's part of my code:

for bline in $(cat "$file"); do   lindir=$()   linarg=$()   echo "dir: ${lindir}"   echo "arg: ${linarg}" done 

Let's say I have a line in file that says this: "./puppies" -c=1 -u=0 -b=1

How can I get an output of ./puppies for lindir and an output of -c=1 -u=0 -b=1 for linarg?


Category: sed Time: 2016-07-28 Views: 0
Tags: sed

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.155 (s). 12 q(s)