IT Nursery
I can’t seem to get jq to behave “normally” in a shell pipeline. For example: $ curl -s https://api.github.com/users/octocat/repos | jq | cat results in jq simply printing out...
  • May 26, 2022
  • 0 Comments
IT Nursery
I’m executing a script connecting via password-less SSH on a remote host. I want to set a timeout, so that if the remote host is taking an infinite time...
  • May 26, 2022
  • 0 Comments
IT Nursery
I have a .csv file like this: stack2@example.com,2009-11-27 01:05:47.893000000,example.net,127.0.0.1 overflow@example.com,2009-11-27 00:58:29.793000000,example.net,255.255.255.0 overflow@example.com,2009-11-27 00:58:29.646465785,example.net,256.255.255.0 ... I have to remove duplicate e-mails (the entire line) from the file (i.e. one of...
  • May 26, 2022
  • 0 Comments
I’m looking for a simple way to find the length of the longest line in a file. Ideally, it would be a simple bash shell command instead of a...
  • May 26, 2022
  • 0 Comments
I have a script that uses sh shell. I get an error in the line that uses the source command. It seems source is not included in my sh...
  • May 25, 2022
  • 0 Comments