Up |
|
|
  |
Author: Bo YangBo Yang
Date: Feb 29, 2008 19:48
Hi,
I have figure out a way to delete newline with sed:
cat brds | sed -e ':again
N
s/\n/ /g
bagain
'
But could you please tell me is that any other better way to achieve
this with sed?
Thanks in advance!
Bo
|
| |
|
| |
6 Comments |
|
  |
Author: zhengquanzhengquan
Date: Feb 29, 2008 18:20
Hello:
I would like to have the current path copied to a file, so I pwd and
use mouse to copy that and then paste it to the file. I wonder if
there is a better way of doing that. I guess if is there is a
mechanism of getting the current path in to the globle X clipboard, I
can use "*p to paste it to vi.
Thanks.
Zhengquan
|
| |
|
| |
11 Comments |
|
  |
Author: Dirk.R.GentlyDirk.R.Gently
Date: Feb 29, 2008 13:21
I'm writing a bash script and just tuckered out. I pretty new to this
so forgive if the terminology is off.
I want to tell bash a direct variable but its not getting it. I have
a pretty good understanding of math and functions and so far this has
got me along good deal in bash I am surprised though that bash doesn't
understand this. Its been a late late night though so if this is...
Ok, heres the script:
#!/bin/bash
# vim2thml-page
# convert a scripts vim syntax highlighting to a webpage.
FILENAME=$1
VIMTHEME=$2
if [[ -z $FILENAME ]]; then
echo "vim2html-page - default theme:
vividchalk-lite"
exit;
fi
|
| Show full article (1.35Kb) |
|
4 Comments |
|
  |
Author: parag_paulparag_paul
Date: Feb 29, 2008 11:45
hi All,
Can a command in history be put in to a variable
liek the following
set i=`echo !t:p`
somehow it does not work
-Parag
|
| |
|
3 Comments |
|
  |
Author: yanyan
Date: Feb 29, 2008 11:42
// the first line appends one line to date.txt every second
while [ "1" ] ; do date >> /tmp/date.txt; sleep 1 ; done &
// the second line prints the last line of date.txt to the screen
every second
tail -f /tmp/date.txt | cat
// the third line does the same thing
tail -f /tmp/date.txt | grep .
// the 4th line prints nothing
tail -f /tmp/date.txt | grep . | cat
// this is what i wanna do, monitoring a log file, look for
interesting strings and perform some operation on the matched line
tail -f /tmp/date.txt | grep . | xargs -d\\n -n1 echo
any help is appreciated. thx
|
| |
|
1 Comment |
|
  |
Author: parag_paulparag_paul
Date: Feb 29, 2008 11:00
Hi All,
Is there any thing that will print the last field from a file
like
cat a.txt
a b c d
e f g
h j k l m n
And is there a way to
awk .... a.txt
will do
d
g
n
|
| |
|
9 Comments |
|
  |
Author: CarbonCarbon
Date: Feb 29, 2008 08:21
I have a ~25,000 line file with 2600 instances of the line $END,\
If the line previous to $END,\ contains the phrase FG4PCONF I need to
replace it with the line SET FG4PCONF=OKI320. If there is no FG4PCONF
line, I would like to insert a new line SET FG4PCONF=OKI320
Any help most appreciated.
|
| |
|
8 Comments |
|
  |
Author: faithgerryapfaithgerryap
Date: Feb 29, 2008 03:02
http://adultfinder.servik.com/acover.htm
Whether you\'re looking for sex chat, nude webcams, swinger action,
group sex or adult personals, you\'ll get it on.
Turn your wildest fantasies into reality. http://adultfinder.servik.com/acover.htm
* Indulge yourself and find partners for hot sexual encounters
and adult dating!
* Anonymously email, chat and instant message other adventurous
men, women and couples!
* Explore the erotic lifestyle of millions of people through their
adult photos and thousands of sexy adult webcam videos!
|
| |
|
no comments
|
|
  |
Author: sadafsadaf
Date: Feb 28, 2008 19:05
Interested in Building Online Business Empire Without Investing
Single Dollar!!
Explore The Best Online Income Opportunity On The Internet Today -
Absolutely FREE!
EARN UNLIMETED WITHOUT INVESTMENT WITH On The Net..
"on top of the primary purchase and MAKE MORE MONEY WITHOUT DOING ANY
ADDITIONAL WORK!"
For More Details; http://moneybusinessideas.blogspot.com/
|
| |
|
no comments
|
|
  |
|
|
  |
Author: wyhangwyhang
Date: Feb 28, 2008 15:24
as the subject. I think there should be but just don't find.
Thank you.
|
| |
|
5 Comments |
|
|
|
|
|