[gedit-list] external tools: swallow the last line
- From: RLP <rhyslpratt yahoo com cn>
- To: gedit-list gnome org
- Subject: [gedit-list] external tools: swallow the last line
- Date: Mon, 3 Oct 2011 23:11:44 +0800
Hello, everyone,
I need a script to number the selected text, that is, to make a
numbered list.
I tried the following script code with options: input="current
selection" and output="replace current selection". Then I found
the last line was removed after running script.
#!/bin/sh
# linecount=1
while read line
do
# echo ${linecount}. $line
# linecount=$[$linecount+1]
echo $line
done
exit 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]