I'm sorry, I have a question for the first time
I want to know how to output to a file with the execution result
./helllo.sh | tee copy.txt
I understand how to do that
I'd like to know how to modify the file and output it to a file, but I can't do it yet, so please give me an answer.
Answer # 1
You can use the tee command in the same way.
#!/bin/bash echo "hello" | tee copy.txt
- output image file with php
- save python output to text file
- html - i want to save with vscode open half-width
- linux - i want to write the standard output and standard error output to a file and display the file contents with cat
- python - i want to read a file with the read_csv function (mac)
- python 3x - python file output
- python - output data in csv with npsavetxt()
- i want to output the linux command (tool?) to a file instead of the terminal
- input/output of csv file with python
- linux - i want to output key-value pairs line by line
- linux - "unknown command" is output by meterpreter
- How to save text file in python
- python - read csv file with keras
- linux - i want to convert a json file to a csv file
- linux - output specific characters for shell script and double quoting
- save python file
- creating a file with python
- apache - suppressing output of linux log
- cannot read file with vba adodbstream
- linux : Bash -Put the transfer of the line after the first word
- linux - how does the print command recognize the return value of the sub function in awk?
- linux : bash incomprehensible if-then behavior
- linux : How to fetch from a file using bash
- How to write a script on linux?
- linux : What does this command do?
- linux : Building LFS on a debian-based distribution
- linux : How to display in the terminal the rights of a specific user for a specific file?
- How do I get the current day of the week in Linux?
- How to replace the line #listen_addresses= 'localhost' with the line listen_addresses= '*' using sed on Linux