I’m trying to make a new folder in the directory I just created and in the tutorial video they told me to use ‘touch example.js’ but I get the error ‘touch: The term "touch" is not recognized as the name of a cmdlet, function, script file, or operable program. I haven’t tried anything else but… Read More What is the 'touch' command equivalent in Windows Terminal?
I am trying to work out how to use the terminal. Does anyone know how I can print the first 7 file names of a current directory? I am using: ls to print all of the files. How can I print the first 7? I hope this makes sense 🙂 >Solution : You can pipe… Read More Printing the first 6 files in a current directory using the terminal
I have a batch which call another batch file. Lets call them b1 and b2. Here is the code inside my 2 batch files. b1 : @echo off call b2.cmd 1>output.txt and b2 : @echo off echo "I want this in output.txt" echo "I want this in the cmd window" 1>&1 After executing my script… Read More Redirect the output outside the output file
I have multiple csv files in a folder. I want to delete the first row of each csv in the folder using windows command line. I am not familiar with windows command line so I will need information regarding how to call the folder within the console. I do not want to make new files… Read More delete first row of multiple csv in a folder windows command line
I am trying to automate my build process. typically what I do is I go to a certain folder where my make scripts are at, open a CMD, type a command which is something like this "Bootstrap_make.bat /fic = Foo" Now I want to do this from inside my python code. simple question is How… Read More How to make my python function go to a specific folder path and run a command line
Trying to get the "Log" line printed only if "ref1" is present in the text following the "Log" line sample text : Log 0102 ………… …..ref1……. ……ref1…. Log 0103 ………… …..ref1……. …. Log 0104 ………… …..ref2……. …… expected result : Log 0102 Log 0103 result i am getting: Log 0102 Log 0102 Log 0103 i… Read More Awk/sed command to print pattern1 only if patterm 2 macthes
Say I run the following in my command line $./(file name) abcd efg hijkl How would I best find the length of argv,argv, etc. In this example, I would like to hold argv, or "abcd", as an integer with a value of 4, argv, or "efg", as an integer value of 3, and argv, or… Read More How to find the length of a command line arguments individual strings
I am trying to install inotify-tools.x86_64 in a rocky8 linux machine. I am getting the following error. Any leads are much appreciated ~yum install inotify-tools.x86_64 Last metadata expiration check: 1:09:43 ago on Thu 19 May 2022 04:50:55 PM UTC. No match for argument: inotify-tools.x86_64 Error: Unable to find a match: inotify-tools.x86_64 I tried to install… Read More inotify not installing in rocky8 linux
I am trying out Firebase / Firestore. When I run the command-line firebase login in a Linux terminal, I am redirected to the typical Google login web-site but with an additional Firebase-logo. After login on that web-site, I have to enable various features and permissions for Firebase to access my Google account. Then the firebase… Read More How does Firebase command-line login work?
I have created a class with a PHP function I would like to run from the command windows. Therefore I have created a class extending command but I’m having trouble because I have to call the EntityManagerInterface and the UserPasswordHasherInterface. If I put them in the constructor and create a new instance, I’m asked to… Read More Use custom service in a Symfony Command