Question: Assuming that 

```
outputTemp =

  2×1 cell array

    {122×1 string}
    {220×1 string}

```

`finalOutput` is a string array (`342x1 string`).

is there any way to do the following

```
outputTemp = arrayfun(@(x)someFunc(x), someInput, 'UniformOutput', false)';
finalOutput= [outputTemp{1}; outputTemp{2}];

```

in one line?

for the minimal example, `someFunc` can be a function that provides the names of the files in folders provided in `someInput`.

Answer: 
you can parse the `requirements.txt` file with python itself and get your package names and split it manually like below:

```
with open("requirements.txt") as myFile:
  pkgs = myFile.read()
  pkgs = pkgs.splitlines()

  for pkg in pkgs:
      print(pkg.split('==')[0])

```

this will give you something like below:

[![enter image description here](https://i.stack.imgur.com/hQHf4.jpg)](https://i.stack.imgur.com/hQHf4.jpg)
Use `sed` to remove version info from your `requirements.txt` file.
e.g.

```
sed 's/==.*$//' requirements.txt

```

will give output

```
asgiref
beautifulsoup4
certifi
chardet
Click
Django
idna
pytz
requests
six
soupsieve
sqlparse
urllib3

```

and this can be piped into `pip` to do the install

```
sed 's/==.*$//' requirements.txt | xargs pip install

```