Skip to main content
edited tags
Source Link

In Kali Linuxa shell script, is there a way to ONLY re-number the list, but not the ordercontents in the list? For example:

3. cat
1. hat
2. mouse

and change it to:

1. cat
2. hat
3. mouse

Thank you.

****** It says Kali Linux, but it actually wasn't. Sorry, my brain is fried from spending a lot of time trying to google an answer/trying to understand this. Thank you to everyone who responded.

In Kali Linux, is there a way to ONLY re-number the list, but not the order? For example:

3. cat
1. hat
2. mouse

and change it to:

1. cat
2. hat
3. mouse

Thank you.

****** It says Kali Linux, but it actually wasn't. Sorry, my brain is fried from spending a lot of time trying to google an answer/trying to understand this. Thank you to everyone who responded.

In a shell script, is there a way to ONLY re-number the list, but not the contents in the list? For example:

3. cat
1. hat
2. mouse

and change it to:

1. cat
2. hat
3. mouse

Thank you.

added 182 characters in body
Source Link

In Kali Linux, is there a way to ONLY re-number the list, but not the order? For example:

3. cat
1. hat
2. mouse

and change it to:

1. cat
2. hat
3. mouse

Thank you.

****** It says Kali Linux, but it actually wasn't. Sorry, my brain is fried from spending a lot of time trying to google an answer/trying to understand this. Thank you to everyone who responded.

In Kali Linux, is there a way to ONLY re-number the list, but not the order? For example:

3. cat
1. hat
2. mouse

and change it to:

1. cat
2. hat
3. mouse

Thank you.

In Kali Linux, is there a way to ONLY re-number the list, but not the order? For example:

3. cat
1. hat
2. mouse

and change it to:

1. cat
2. hat
3. mouse

Thank you.

****** It says Kali Linux, but it actually wasn't. Sorry, my brain is fried from spending a lot of time trying to google an answer/trying to understand this. Thank you to everyone who responded.

edited tags
Link
Kusalananda
  • 355.9k
  • 42
  • 735
  • 1.1k
edited tags; edited tags
Link
user147505
user147505
Loading
formatting
Source Link
Bodo
  • 6.4k
  • 18
  • 30
Loading
Source Link
Loading