Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hit a key using User Data field #6

Open
SnehalPande opened this issue Oct 16, 2019 · 1 comment
Open

Hit a key using User Data field #6

SnehalPande opened this issue Oct 16, 2019 · 1 comment
Assignees

Comments

@SnehalPande
Copy link

How can we give a command to press any key during the script?
ex:

  1. I want to create anew file: vi test.txt
  2. I added some sample data to it
  3. I want to press ESC (in order to exit insert mode)
  4. Save the file

How can we pass the command to press ESC key?

@miztiik
Copy link
Owner

miztiik commented Mar 6, 2020

What is your use-case, what are you trying to achieve?
Can you not use this syntax,

cat >> YOUR-FILE-NAME << 'EOF'
your_file content_goes_here
EOF

@miztiik miztiik self-assigned this Mar 6, 2020
@miztiik miztiik assigned SnehalPande and unassigned miztiik Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants