Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.UNIX.SHELL
Add 1 to each number in a column and keep the original format/blank in
From
hongyi.zhao@gmail.com
@21:1/5 to
All
on Wed Sep 22 17:06:26 2021
I have some stuff in a file like the following:
you're right 1
foo 2
bar 3
[...]
I want to add 1 to each number in the last column and keep the original format/blank in the middle part of the line.
Any hints to achieve this goal?
Regards,
HZ
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Lonewolf
Fri Apr 4 14:38:13 2025
from
Little Flock, Ar
via
Telnet
Bob Worm
Fri Apr 4 10:26:11 2025
from
Wales, Uk
via
Telnet
Lonewolf
Fri Apr 4 02:49:13 2025
from
Little Flock, Ar
via
Telnet
Vladt2007
Fri Apr 4 02:39:43 2025
from
Montreal, Qc
via
SSH
Vladt2007
Fri Apr 4 01:25:24 2025
from
Montreal, Qc
via
SSH
Guest
Fri Apr 4 00:15:08 2025
from
Montreal
via
SSH
Guest
Thu Apr 3 23:27:15 2025
from
A
via
SSH
Guest
Thu Apr 3 21:28:50 2025
from
A
via
SSH
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
443
Nodes:
16 (
3
/
13
)
Uptime:
62:23:04
Calls:
9,190
Calls today:
6
Files:
13,475
Messages:
6,051,873