I am in need of a listing of all files with a specific extension on a server. I need it to show the server hostname, file size, and absolute path of the file. or Almost get me there: joes_server 5473 /home/joe/pics/sunset.jpg 8522 /home/joe/pics/mountains.jpg I cannot figure out how to include the hostname on each line of the find output. My
Tag: command-line
What’s the easiest way to use the output paths from a git command in a subsequent git command?
I far too frequently use the mouse to do things like this: I know that some git commands accept wildcards, and this mitigates this problem somewhat, but I’m wondering if there is a way do specifically reference pathspecs, etc. from previous commands. How can I run commands like this without using the mouse, and without retyping long paths by hand?
How to list recently deleted files from a directory?
I’m not even sure if this is easily possible, but I would like to list the files that were recently deleted from a directory, recursively if possible. I’m looking for a solution that does not require the creation of a temporary file containing a snapshot of the original directory structure against which to compare, because write access might not always
How to run LibSVM Classifier with 10 fold cross validation from Weka from Linux commandline?
I have installed Weka 3.7.12 on a linux machine with only commandline interface. I have downloaded the LibSVM.jar file as well and copied it in the same directory. How can I run the libsvm with 10 fold cross validation from the commandline in a similar way as in java weka.classifiers.trees.RandomForest -I 100 -t ./data/iris.arff Answer I was able to get
Python command line arguments linux
I have this little program(I know there is a lot of errors): If i start it by typing python file.py testfile.txt the output will be always(even if the file doesn’t exist): If you don’t know what iam want from this program, i want to print “File ‘filename’ wasn’t found” if the file isn’t exist and if it’s exist iam wan’t
How to send facebook message from linux console (command-line)
Old days many admins use sms-gates for sending important informations from their systems e.g. “Power down, UPS is working now!”, “Power Up, UPS is off!” or “CPU Temp too high!”. Today in Facebook era we use messenger instead of SMS, so I wonder if I could create a command-line bash or php script for such thing. The idea – cron
How to enable confirmation alert when using ‘rm’ command to delete files / folders? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Writing a background program with command line interaction [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question I’m just playing around and want to write a c++ program that monitors my CPU temperature, (i know there is
Merge multiple files preserving the original sequence in unix
I have multiple (more than 100) text files in the directory such as The contents of the file are name of some variables like files_1_100.txt contains some variables names between 1 to 100 Similarly files_201_300.txt contains some variables between 101 to 200 and files_1001_1100.txt as I can merge them using the command However, the contents of files does not follow
How to find newest files with a certain name?
Suppose I have a directory with many files of the same name in subdirectories (for example, comes up when keeping BibTeX files for multiple academic papers). What’s the best way to find the newest version of a file with a given name? I’ve come up with the following command which lists all the files named someFile along with their dates,