Skip to content
Advertisement

Tag: automation

Traversing a directory using Makefile

I am making use of a makefile to traverse a directory , store the file names in a variable , extract the file number using regex and print the file number . Below is the code block I am using : LINE 7 is the command in makefile I want to include in the for loop. I want the actual

shell script to change directory to the tail result path

I’m using Tail to an error happen on the log lines like: and this gives results like: So what I do manually is to change the path using cd: Is there any script to change directory automatically? As I run another manual script to change file names for the files contained in /003217899/, those like /003217899/ are happening many times

How to pass Rundeck key storage to script

I created Rundeck Key storage and stored password in it Then created Job option Then in inline script i specified folowing (keys/JIRA is Rundeck password storage) But password is not passed and authnetication fails, what am i doing wrong ? Answer The password value will be expanded when it is passed to the script. Below is an example: – description:

bash script version of forfiles

I’m currently converting a DOS batch script to a shell script and while I have 99% of it working, one part I cannot figure out how to convert over. In the batch file, I have a line that looks like How would I write that for a shell script? Answer Try this, this will delete files without prompting To be

Better bash script to create directory structure

I want to create folders with plain text with a structure like: I thought about using a base command like mkdir and found that post : Bash script that creates a directory structure, but it still needs to write structure like : So I would need to change the regex used in : What bash command could I use to

Advertisement