Skip to content

Tag: shell

Linux shell change directory,file not found

I have written my convert.sh shell This is my working directory All executables and libraries are here, including tsmp. But when I run my script It seems that I do not understand alias. Following chepner’s comments,I have tried this But Why? Answer tsmp is not in your PATH environment variable, so you h…

script to change format of text [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 7 years ago. Improve this question I want to change a text file that contains for example : a 1 b 2 a 3 b 4 to: a b 1 2

Sort file based on information from different file

I have a file (f1) that contains two columns; f1 looks as follows: In a different file (f2), I specify how I would like individuals in f1 to be sorted based on their population; f2 looks as follows: I am looking for the following outcome: Could anyone please give me advice on how to achieve this outcome? Answ…

Combining two bash commands

If found this code which gives pi Ip address and this which sends 1.2.3.4 off to dweet.io stream How can I get the output from 1st to replace the 1.2.3.4 in second please? Answer Save the output of the first command in a variable: Btw, if your raspberrypi is running raspbian, then a much cleaner way to get th…