All Questions
270
questions
0
votes
0
answers
15
views
I need a batch file to find files with specific extension and add in them one line of text
I'm completly new and dont know a thing about creating batch files. I used to study informatics but now I'm car mechanic :)
I've got few computers in few places containing VMware machines that need to ...
0
votes
1
answer
40
views
Sort a huge collection of text files
I'm trying to sort a huge collection of text files. They are in various folders.
All the files and folders doesn't have spaces in their names.
The text files names look like: hsXOAXOMQovq.txt (12 ...
0
votes
0
answers
17
views
How to find files with the same filename (except what's inside parenthesis) and deleting the smaller size ones
I need to know how to find one or more files with the same filename (except what's inside parenthesis) and delete the one(s) with the smaller size, in a folder. I don't care if it's a GUI app or ...
0
votes
0
answers
30
views
Where is this file in Windows? /home/f515c326-589b-4129-8fbc-af1053ae8b58/deneme.txt
dosya = open(“deneme.txt”, “w”)
print(“Ben Python, Monty Python!”, file=dosya)
dosya.close()
After
import os
os.getcwd()
the result
/home/f515c326-589b-4129-8fbc-af1053ae8b58/deneme.txt
this is ...
1
vote
2
answers
50
views
in BASH, how to find files with no file.extension
echo >tst
echo >tst.
echo >tst.txt
echo >tst.html
echo >tst.ms.html
echo >tst.ms..html
find -maxdepth 1 -type f -name "*."
I get only:
./tst.
I want to get the one file
....
0
votes
1
answer
53
views
How do I include a list of sub-directories when using `find`?
Although I could not find an example of what I want to achieve, I thought this would be easy given examples that would appear to have similar logic, eg How do I exclude a directory when using find?, ...
-1
votes
1
answer
78
views
Match java-script files name using regex
How I can match the following files name using regex.
index.js
[id].js
[...params].js
I tried this regex on my own but it seems to be not work
[a-z[]*.tsx
index.js // working
[id].js // not working
[....
0
votes
1
answer
43
views
Find files that match lines of a txt and then cp them to a new directory
I have a whitelist.txt. Inside this txt is a list of file names simliar to this:
9853412_00000_0_0.vcf
7549682_00000_0_0.vcf
3589647_00000_0_0.vcf
I want to look inside a specific SOURCE directory ...
0
votes
1
answer
298
views
Import error, can't find files error in stackblitz
hi can anyone please help me to solve this error in stackblitz -react project.
Please click on the below mentioned link to replicate the scenario - https://stackblitz.com/github/bharathkumarrangarajj/...
0
votes
1
answer
1k
views
Renaming multiple files - first by finding the files in a set of subdirectories and then matching file names to a list containing the new file names
I have a set of files that are organised across a large number of sub-directories, for example:
/Image/Square001/Data
/Image/Square002/Data
/Image/Square003/Data
and so on.
All the files within these ...
0
votes
1
answer
817
views
find -mtime option on linux listing all files regardless of time?
I'm trying to use the linux find command to show me the files in my current directory that have been modified in the last 24h. To test my command, I piped it to ls as below.
find . -maxdepth 1 -mtime -...
0
votes
2
answers
781
views
Bash script to find specific files older than 90 days and put them in .csv file
I have the bash script below, and I am trying to find a way to write additional functionality that also calculates the number of days between the last modification of the file and the current date:
#!/...
0
votes
1
answer
79
views
sed: how can I replace an identifier/key word in a file with a file name?
I have a parent directory that contains a succession of daughter directories called:
1
2
3
4 # <-- This one is used in an example below.
...
Each daughter directory contains a file called input ...
1
vote
0
answers
76
views
Linux bash find and delete older than
I'm using this command to find and delete all files with same name in current directory and all its subfolders:
find . -name backupname.tar.gz -exec rm -rf {} \;
Now I want to find and delete all ...
0
votes
3
answers
789
views
Searching a vector for a string, and then find the position of the string in c++
I am trying to erase a string from a text file. To do this, I want to read the file into a vector, then I want to search for the position of this string, so I can use vector::erase to remove it. After ...