Skip to content

Print error for missing argument

I am trying to write a script which will check number of arguments for first and second number; if both variable entered, it will do the calculation; if one argument is missing, it will print error message. Here what I’ve done so far: I am always getting error message even though I enter both of the num…

Comm command – unnecessary restriction?

This is a question about the comm command on linux command line. Why does it work on only sorted files? Why can’t it sort the files for us, then do its thing? To illustrate: If we have file1 and file2, and we wish to compare them using comm, we find that we obtain an unexpected result if either of the

searching a file in linux

I want to find in the system a file, and I know part name of it. How could I do that? I tried unsuccessfully the command: The problem is probably very easy however I cannot find a decent tutorial on searching files in linux. Please tell me what command solves my problem and if you know a good tutorial so

Library installation with yocto recipe

have a bit of a problem creating a recipe for yocto. More specifically i have to install a library from git that normally installs like this: My question is how can I add this to the recipe functions do_configure, do_compile, do_install. Haven’t found much information or examples online. Update 1: This …

Running Perl script accidentally locked a folder

I have a Perl script which has the following code Upon running this script, I am unable to access the current folder (and open this script of course) anymore. When seeing the folder in Konqueror, there is an additional lock in the folder icon. Can anyone tell me what happened and how can I undo this? I have c…