While doing the input redirection, the shell opens the file on the right side of '<' with file descriptor 0, but in the case of the heredoc there is no such
I'm using the following script to get the data of one of the variables from the database file #!/bin/bash sqlite3 pdu.db <<'END_SQL' .timeout 2000 SELECT
I have an input file, which has below data : driver2:y driver5:y driver3:n driver1:y driver4:y The requirement is, for each driver if the value is "y" then the
If context menu key that launches some executable exists in Windows registry and the "%1" command line patrameter place holder is mentioned, the path this execu
I have a txt file called test.txt that looks like this, hi this is a test and I have a c++ file called selection_sort.cpp that looks like this, #include <io
textfolding="ON" echo "some text blah balh test foo" if [[ "$textfolding" == "ON" ]]; then | fold -s -w "$fold_width" | sed -e "s|^|\t|g"; fi The above code w
Sorry if this question is repeated. how can I create a variable a.b and assign a value to it. ---------- root@IN2268980W3:# a=1 root@IN2268980W3:# a.b=1 a.b=1:
I am trying to interact with android app shared_prefs using adb. Let's use VLC for this example. The shared preferences are stored in: /data/data/org.videolan.v
I've a log file with below text, [2022-05-05T22:25:58,523] Text/debug data I want to fetch log data for errors in only last 10 mins to configure in cron. How t
as title says I need to write a bash oneliner that finds all txt files and, for each, writes name and content into another file. So far I wrote: find . -name "*
I am trying to use send/recv function in Paramiko. According to what I see, the line throws an exception of timeout Evaluating: self.shell.recv(1024) did not f
I write a r script below and want to run it in jupyter terminal. But it shows error: ./Rda_to_csv.r: line 1: syntax error near unexpected token `(' ./Rda_to_csv
After installing nushell (https://www.nushell.sh/) in my windows environment, I want to use the power of nushell in conjunction with powershell. For example, I
In the Windows default command shell (cmd.exe) you can access the history of typed commands using various controls (up arrow for most recent command etc). When
I am trying to write a function to send the clipped image in windows host to my Ubuntu WSL2 (defun win2wsl-clipped-image() "use powershell to save the
I need to convert from 'ifconfig' command output to Uppercases: I've tried like this: ifconfig | tr [:upper:]
How would you go about removing everything after x number of characters? For example, cut everything after 15 characters and add ... to it. This is an example s
Is there anyway to use pwd or $PWD in .env. Im looking to get the PWD so that I can add it to an PYTHONPATH env. Thanks,
Trying to fetch the status of the URL for sonarqube quality gate and check if the status is "OK" the condition should pass or if the status is "ERROR" then it s
I have newly started with bash and now I am facing the following problem: lukas@Lukass-MacBook-Pro Desktop % ./script.sh delete: Invalid Path <dscl_cmd> D