Skip to content

Tag: shell

Find command in linux bash shell

the find command is: I want to convert to: so my code (is doesn’t work): Answer What you are attempting cannot be solved in the general case with “classic sh” because you need your script to work correctly with directories named * or ‘”[ ]”‘, and plain old flat string…

Finding difference between 2 directories in linux

Hi guys, dir1/subdir/file.txt dir2/subdir/nffile.txt when i tried with “diff -r dir1 dir2” it shows only the content difference in files but i want interns of new file addition. Any possibility that we can find the difference between these dir using the “diff” command. Answer Try out u…

Using shell commands with boot2docker

I have created a boot2docker VirtualBox instance, I can SSH into it OK but then when I try and run any commands such as bash I get Pretty sure I’m missing something really simple but can’t see what. Looking in /bin it doesn’t look to contain bash I’m pretty new to the *nix world so be …

PostgreSQL CSV import from command line

I’ve been using the psql Postgres terminal to import CSV files into tables using the following which works fine except that I have to be logged into the psql terminal to run it. I would like to know if anyone knows of a way to do a command similar to this from the Linux shell command line similar to how