I want to list all of my files in a folder to a txt file but at the same time I need to write a string next to them such as:
aaa.txt should be in the form of:
/home/user/a1.jpg 1
/home/user/a2.jpg 1
/home/user/a3.jpg 1
/home/user/a4.jpg 1
I can get the first one with
find `pwd` | cat > aaa.txt
However, I cannot write "1" next to each line. There are millions of lines so I cannot do it manually, too. Is there any way to do this?
By the way, I'm using Ubuntu and if it's possible it needs to be done by bash commands.