You are not logged in.

#1 2025-02-11 08:32:50

barnd3
Member
Registered: 2023-02-07
Posts: 165

[Solved] ldpaadd (empty Line)

If I enter "ldapadd -D "cn=Manager,dc=example,dc=org" -W -f base.ldif", an ldap console opens where I can enter the data.
How can I enter an empty line (with which key)?

Last edited by barnd3 (2025-02-14 20:37:36)

Offline

#2 2025-02-11 17:06:35

xerxes_
Member
Registered: 2018-04-29
Posts: 1,029

Re: [Solved] ldpaadd (empty Line)

There are few ways, depending what you need:
- simply "echo" will give you new line
- also "printf '\n' " will give you new line; you can do "command ; printf '\n' ; command" or "command ; echo ; command"
In bash and most shells:
- ctrl+v+enter will give new line (ctrl+v+ other key will give that key, like tab, ret, esc, del, arrows, f1, etc.)
- or simply ctrl+m give enter - return, so new line

Last edited by xerxes_ (2025-02-11 17:15:18)

Offline

#3 2025-02-12 21:10:32

barnd3
Member
Registered: 2023-02-07
Posts: 165

Re: [Solved] ldpaadd (empty Line)

"ctrl+m" is what I was looking for.
Thank you very much

Offline

#4 2025-02-12 22:37:33

xerxes_
Member
Registered: 2018-04-29
Posts: 1,029

Re: [Solved] ldpaadd (empty Line)

Mark thread as 'SOLVED' by editing first post. BTW there are more shortcuts, which appear between unix progs, shells, system, see man: readline, vi, for example.

Offline

Board footer

Powered by FluxBB