Search Results

Search: Posts Made By: blito_loco
1,594
Posted By blito_loco
I using bash. #!/bin/bash arr1="demo...
I using bash.

#!/bin/bash

arr1="demo demo2 demo3 demo4 demo5"
arr2=$(echo 'demo2,test,demo' | sed 's/\.*,/ /g')

for i in $arr2
do
list="$list $i.out"
done

echo $list

The second...
1,594
Posted By blito_loco
Problem with arrays
Hi

I have two arrays:

arr1 = (demo demo2 demo3 demo4 demo5)
arr2 = (demo2 test demo)

I want to check that the values the "arr2" are present in "arr1"

Example

arr1 = (demo demo2 demo3...
4,372
Posted By blito_loco
I works Thank all for comments
I works

Thank all for comments
4,372
Posted By blito_loco
I works echo '--yyy "test test2" sadasds...
I works

echo '--yyy "test test2" sadasds --xxx "demo demo2"' | sed 's/\(.*\)\(\".*\"\)\(.*\)\(\".*\"\)/\2 \4/g;s/\"//g'

Output: test test2 demo demo2

But, now i need obtain only text that...
4,372
Posted By blito_loco
Regular expression (sed)
Hi

I need to get text that are within ""

For example

File:
asdasd "test test2" sadasds asdda asdasd "demo demo2"

Output:
test test2 demo demo2

Any help is good

Thank you
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 07:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy