0
votes
2answers
39 views

execute command from txt file

I have file and in this file i have this lines: ssh root@server1.com ssh root@server2.com etc.... And i have script that i like to go on every server and execute the ls command on each of this ...
2
votes
2answers
798 views

How can I restore file timestamps of video recordings using the embedded metadata?

I'm looking for a command that will read the metadata of a ‘*.mp4’ file and touch the file's timestamp with the creation time of the video. The command should be read-only with respect to the file ...
4
votes
4answers
1k views

How to randomly sample a subset of a file

Is there any Linux command one can use to sample subset of a file? For instance, a file contains one million lines, and we want to randomly sample only one thousand lines from that file. For random ...
0
votes
1answer
36 views

In which way is a commented line active in a program file?

To solve the bug reported here the solution seems to be commenting, not just adding a certain line in a file - as explained here and here. That is - to make that bug disappear in Xfce, a certain line ...
1
vote
1answer
161 views

What does - mean with association to Linux files and directories [duplicate]

Possible Duplicate: What does “--” (double-dash) mean? What does '--' (two dashes) mean with association to Linux files and directories. I've found something else but not too sure if it is ...
3
votes
2answers
3k views

How to execute one command on all files within a folder

Saying, I have this tree and I want to execute ruby on all scripts within the folder. How could I archive through one line of command. ./ ../ rb-script/ sample1.rb sample2.rb