Search Results

Search: Posts Made By: narcvs
104,812
Posted By narcvs
Ah! Hah, silly me. Yes, of course. Thanks a...
Ah!

Hah, silly me. Yes, of course. Thanks a bunch,

echo "$list"

works just fine.

Marcus
104,812
Posted By narcvs
Thanks tmarikle, but that unfortunatly doesn't do...
Thanks tmarikle, but that unfortunatly doesn't do it.

$ cat script.sh
#!/bin/bash

list="hello " # first hello
list=$list`echo -e "\ntest\n "` # As per advice from tmarikle...
104,812
Posted By narcvs
Newlines in shell variables
Hello,

I'm trying to create a shell variable with newlines inside it, so that when I echo the variable and pipe it to, say, awk, it output with the newlines. Why is this so problematic? I frankly...
Showing results 1 to 3 of 3

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