Search Results

Search: Posts Made By: 14th
Forum: Programming 10-16-2012
4,709
Posted By DGPickett
SQL is not a natural place for order and...
SQL is not a natural place for order and numbering. You can add order with 'order by' but numbering is a bit server-specific. But there are ways. Suppose your text file is in a one column table...
Forum: Programming 10-16-2012
4,709
Posted By gary_w
Have a look at this. Using union merges the...
Have a look at this. Using union merges the queries together and sorts them. Logically this is not what you asked for though. Your example was getting a row on either side of the target value. ...
2,421
Posted By roman015
Let's put it this way: The Kernel hides a lot of...
Let's put it this way: The Kernel hides a lot of "complexities" which would have made programming a computer a lot more complicated.

Back before operating systems (and kernels) were there people...
2,867
Posted By Chubler_XL
You could try shc Shell Compiler...
You could try shc Shell Compiler (http://www.datsi.fi.upm.es/~frosal/)
2,147
Posted By durden_tyler
$ $ start=$(date -u -d "22-Feb-2010") $ $...
$
$ start=$(date -u -d "22-Feb-2010")
$
$ echo $start
Mon Feb 22 00:00:00 UTC 2010
$


tyler_durden
26,309
Posted By danmero
Be welcome, you should take Useless Use of Cat...
Be welcome, you should take Useless Use of Cat Award (http://partmaps.org/era/unix/award.html) first.
26,309
Posted By Corona688
They are there, but doing echo $var instead of...
They are there, but doing echo $var instead of echo "$var" has the side-effect of flattening out all whitespace.

What are you attempting by putting an entire file in a variable? There's probably...
26,309
Posted By danmero
# cat file note: this a note a simple note ...
# cat file
note:
this a note
a simple note
a very very simple note
# var=$(<file)
# echo "$var"
note:
this a note
a simple note
a very very simple note
11,388
Posted By Scrutinizer
The first sentence removes all the tags so the...
The first sentence removes all the tags so the content remains.
$ echo "<tag1>content</tag1>" | sed 's/<[^>]*>//g'
content

To do the same with [] you could do this:
$ echo...
11,388
Posted By ygemici
Alternatives ;) # echo "<tag1>content</tag1>" |...
Alternatives ;)
# echo "<tag1>content</tag1>" | sed -e 's/<[^<]*>//g'
content


# echo "<tag1>content</tag1>" | sed -e 's/.*>\(.*\)<.*/\1/'
content


# echo "<tag1>content</tag1>" | sed -e...
11,388
Posted By malcolmpdx
I don't think that will do what you describe. ...
I don't think that will do what you describe.

sed -e 's/pattern/replacement/g'

is a search and replace pattern. In your example, there's no replace, and nothing will be returned.

You...
Showing results 1 to 11 of 11

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