I got a task to display all bash fonts/colors/background colors in table where the text is different for each variation and is being taken from file that contains 448 words/random number(I’m working with numbers). Here is my code for displaying all variations Output: enter image description here Code fo…
Tag: bash
Why are some Bash commands both built-in and external?
Some commands are internal built-in Bash commands while others are external (other programs). I see why certain commands need to be built-in. Some of the reasons are: If a command needs to change the internal state of the shell process. If a command performs a very basic operation in the shell. If a command i…
Where to execute bash command in visual studio?
I want to setup CI for my flutter project, and i need to encrypt the keystore file. For this i choose the following solution: https://docs.travis-ci.com/user/encrypting-files/ I am developing with visual studio code, also i have no idea about bash. I need to execute following command: Questions: Where do I ex…
Unable to mput all the files through sftp in the remote server using expect
I’m trying to mput all files present in the directory : /Test/XML/ into a remote sftp server with the help of expect utility. I’ve around 320 files in the directory: /Test/XML/. The size of each file is around 0.1 MB. There’s no error observed. Here’s my code: But the problem here is, …
ASCII Text Browser Vs. cURL
I hit this url : http://artii.herokuapp.com/make?text=abc+art&font=smisome1 I see this Then when I curl exact same URL curl http://artii.herokuapp.com/make?text=abc+art&font=smisome1 I got this 🤦🏻♂️ Does anyone know why this is happening ? Is there a specific flag in the curl I should pass to make it…
Access List of Items from cURL Result
If u go to this url : http://artii.herokuapp.com/fonts_list, you will see a list of 417 items on the list. I’m trying to create a variable to store/access those list. I could not get it to work. I kept getting Any hints on how to do it ? Answer Starting with the assumption that the result is, in fact, o…
Linux SHELL script, read each row for different number of columns
I have file and for example values in it: I need to read values using the shell script from it but number of columns in each row is different!!! I know that if for example I want to read second column I will do it like this (for row number as input parameter) But as I mentioned number of columns
How to pass “-L” to an awk script?
I am trying to write an awk script that accepts -L as an argument. As an example to show you what I want, here is a simple awk script called awktest: If I run this from shell: I get as output: Which is what I expect. It seems to work for anything I put in except -L. If I run:
Return custom process command in Ubuntu
I want to launch the following script in bash and the “ps -A | grep php” command returns something if the script is running. Is there any way to customize this “php” command with another name? I want to write and “ps -A | grep php” should return nothing, but “ps -A | …
Fetch latest matching string value
I have a file which contains two values for initial… keyword. I want to grab the latest date for matching initial… string. After getting the date I also need to format the date by replacing / with – In the above example, my output should be 2018-02-05. Here, I am fetching the line which cont…