Hi,
I have a directory with a bunch of files say around 150K.
I want the directory's path and the filenames printed to a text file.
Example:
If I am in the directory /path/test and the files in this directory are
Quote:
1.txt
2.txt
3.txt
My output file should be like this
Quote:
/path/test/1.txt
/path/test/
hi,
i have a directory at
Code:
/path/unix
with the following files
Code:
1.txt
2.txt
3.txt
4.txt
I want to make another file called
Code:
filenames.txt
at a different location called /path/home.
Hi,
I have been working on a punch of codes and I got to a problem I hope to get help on. I have some files that I want to work with but the folder has other files in it.
As far as I understand, the usual way to add a path to the PATH environment variable is by concatenating paths separated by the : character.
I'd like to get a list of all files in my Gentoo Linux system that were not installed by the package manager (Portage). This is because I want to keep my system as clean as possible, removing all useless files lying around.
Let me tell you what I've tried until now.
Is there any way in bash to type a path once, and then reference several files at once?
Here's what I do now:
cd /origin/path/
mv file1 file2 ../../destination/path/
Here's what I'd rather do:
mv /origin/path/{file1, file2} /destination/path/
possible?
Thanks!
Hi All,
I am listing the files which are 4 hours older. For this first I have creted a dummy file with the 4 hours before timestamp, then I am using the below find command,
find /path/ -type f ! -newer 4_hours_oledr_file -exec ls -lrt {} \;
I am getting the files which are older than the four hours only.
I am organizing my music library on a NAS server. I want to print a list of all the directories that are missing the cover art (at least one or more jpeg file). I have successfully created a file with each line containing the path to each occurance of one or more .mp3 files.
Hi,
i'm trying to add my scripts directory to my path. I've done it before for my current session (though I cant remember how I did it...) but I wont to do it permanently. I did some research, and I should be looking for the .bash_profile file, but I cant seem to find it in my BT.