[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Idea: jobs(1) -i to print only :%ID:s
From: |
Oğuz |
Subject: |
Re: Idea: jobs(1) -i to print only :%ID:s |
Date: |
Fri, 10 Nov 2023 05:52:11 +0300 |
On Thursday, November 9, 2023, Steffen Nurpmeso <steffen@sdaoden.eu> wrote:
>
> I mean some scripting on "jobs | wc -l" would do that, though. :(
> Maybe i should just write a function that builds the string
> necessary to do what i wanted with %* or "%1-2 %4" etc.
> Eh. Forget about it.
>
Can't you abuse jobs -x somehow? Like this perhaps
jobs -x printf '%s\n' %{1..100} | awk '!/%/{print "%"NR}'
--
Oğuz
- Re: Idea: jobs(1) -i to print only :%ID:s, (continued)
- Re: Idea: jobs(1) -i to print only :%ID:s, Steffen Nurpmeso, 2023/11/09
- Re: Idea: jobs(1) -i to print only :%ID:s, Robert Elz, 2023/11/09
- Re: Idea: jobs(1) -i to print only :%ID:s, Steffen Nurpmeso, 2023/11/09
- Re: Idea: jobs(1) -i to print only :%ID:s, alex xmb sw ratchev, 2023/11/09
- Re: Idea: jobs(1) -i to print only :%ID:s, Steffen Nurpmeso, 2023/11/09
- Re: Idea: jobs(1) -i to print only :%ID:s, alex xmb sw ratchev, 2023/11/09
- Re: Idea: jobs(1) -i to print only :%ID:s, alex xmb sw ratchev, 2023/11/09
- Re: Idea: jobs(1) -i to print only :%ID:s,
Oğuz <=
- Re: Idea: jobs(1) -i to print only :%ID:s, Steffen Nurpmeso, 2023/11/10
- Re: Idea: jobs(1) -i to print only :%ID:s, Greg Wooledge, 2023/11/10
- Re: Idea: jobs(1) -i to print only :%ID:s, Steffen Nurpmeso, 2023/11/10
- Re: Idea: jobs(1) -i to print only :%ID:s, Eric Pruitt, 2023/11/10
- Re: Idea: jobs(1) -i to print only :%ID:s, Greg Wooledge, 2023/11/10
- the portability of seq(1) (was: Idea: jobs(1) -i to print only :%ID:s), G. Branden Robinson, 2023/11/10
- Re: the portability of seq(1) (was: Idea: jobs(1) -i to print only :%ID:s), Greg Wooledge, 2023/11/10
Re: Idea: jobs(1) -i to print only :%ID:s, Chet Ramey, 2023/11/10