Skip to content
Advertisement

Tag: shell

Extracting month from day using linux terminal [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I am having a text file containing a list of date and time just like the sample below – posted_at”

AWK: Comparing substrings from two files and write to third file

I’m trying to compare two different files, let’s say “file1” and “file2”, in this way. If the substring of characters i.e 5 characters at position (8 to 12) matches in both files – file1 and file2, then remove that matching row from file 1. Finally, write the output to file3.(output contains the remaining rows which are not matching with file

Bash script – delete old files

I have a script that uploaded a compressed file to an ftp, it is the code that I show below. This code works correctly, but I would like to adapt it so that once the file is uploaded, it deletes ftp files older than a week. Answer You can try this solution: Note: I have commented the Remove file line,

How to encrypt a files in Jenkins

I am trying to run Node.js app from jenkins which takes a backup of our API management platform. When we get a backup on jenkins server, we have below directories – Backup There are directories in secrets like abc, pqr, xyz which store some .txt files in it which has confidential data. I want to encrypt all files present in

Advertisement