Home>
When multiple lines of input are given, I want to create a one-line command that outputs a copy of each line down one line.
Specifically, for example, the output offind ./ .-type f
is
aaa.txt
bbb.txt
ccc.txt
and when this is received as input on a pipe
aaa.txt
aaa.txt
bbb.txt
bbb.txt
ccc.txt
ccc.txt
I want to output.
I would appreciate it if you could tell me what command to use.
Thank you.
This is a postscript.
OS: Cent OS7
Shell: bash
-
Answer # 1
Related articles
- linux - i want to rename and save the previous day's log file with a shell script
- linux shell script creation
- i want to give input automatically when i run the python code in a shell script
- linux - shell script duplicate replacement method
- linux - when you want to continue after the job of the shell script qsub is finished
- linux - [shell script] convert only lf of a file in which crlf and lf are mixed
- i want to resolve shell script error "unexpected end of file" on linux
- how to reference variables in linux shell script
- linux - array is garbled in shell script
- linux - shell script if statement doesn't work
- shell script - questions about linux terminal commands
- linux - [shell script] replacing the date and time information described in csv
- linux - area calculation using shell script
- shell script linux
- raspbian: xterm gets called in shell script
- i want to change the date format in a shell script
- how to delete oldest file in shell script
- handling command line arguments in shell scripts
- Implementation code of shell script to connect to oracle database
- Detailed usage of Linux Shell Map
Related questions
- perl - extraction and processing from a text file under multiple specified conditions
- linux - is there a way to refer back to a character string that matched a wildcard in bash, etc?
- linux - about "" and ""
- linux - retry process in for statement
- linux - crontab does not work
- unix - how to reproduce ls -t command with find | sort
- linux - i want to generate json from a list
- i want to call the argument of the python script executed on the terminal in the code and omit it
- bash - echo i don't understand the meaning of "${#-}"
- linux - how to align multiple outputs horizontally and output to csv
Sorry if you can't execute it because you don't know the execution environment.
I think there are various ways, but I think the following means can be realized simply.