Skip to main content

Thread: Editing text file with a script help


hey,

i'm trying write script loop through files of directory , add names of each file text file.

i'm relatively new writing scripts , have no idea how able edit text file bash.
appreciate.
thanks.

quote posted bball2601 view post
i'm trying write script loop through files of directory , add names of each file text file.
could this?

code:
ls -1 > files.txt
the '>' called redirection. can use redirect output of command file. 'ls -1' command directory listing 1 column of filenames.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Editing text file with a script help


Ubuntu

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP