Sponsored Content
Top Forums Shell Programming and Scripting Switching between directories and mkdir/copy dir/file Post 303015775 by Mannu2525 on Thursday 12th of April 2018 05:25:09 AM
Old 04-12-2018
Like if something gonna change in config_file like commenting any test or anything has to be written in the line apart from cd and test. Yes, for now, it's working but I'm looking for the solution/suggestion to make it stable for any future changes in config_file.

For example- config_file include commenting "#" and testfilter - they should not be processed

Code:
cd dir/folder1
test: a1
#test: a2
test: a3
testfilter: any node01
test: a4
testfilter:
cd dir/folder2
test: b1
test: b2
test: b3
testfilter: any node01
test: b4
testfilter:
cd dir/folder3
test: c1
test: c2
test: c3


Last edited by Mannu2525; 04-12-2018 at 06:30 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

CPIO Problem, copy to the root dir / instead of current dir

HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file! I tried all these commands cpio -i --make-directories <... (2 Replies)
Discussion started by: nekkro-kvlt
2 Replies

2. UNIX for Dummies Questions & Answers

Copy file into directories and sub-directories

Hello- I need to copy a file into multiple directories, and each directory's sub-directories (of which there are 5) Currently, the parent directory is set up like this: dir1 sub-dir1 sub-dir2 sub-dir3 sub-dir4 sub-dir5 dir2 sub-dir1 sub-dir2 sub-dir3 ... (1 Reply)
Discussion started by: penlok
1 Replies

3. UNIX for Dummies Questions & Answers

Copy dir/file from one place to another.

Hello all. I'm not getting the hang of Paths. I have a dir w/files that I want to copy to another dir. Right now I am in the "source" directory. I want to copy it to Ch7. "cp -r source Ch7". Ch7 was already created. 1st msg.: cannot stat `source`: No such file or dir. I typed pwd & got... (3 Replies)
Discussion started by: Ccccc
3 Replies

4. Shell Programming and Scripting

Copy files from input file with dir structure

hi, I want to copy files from source directory based on input file (or output of previous command) and i want to have the SAME DIRECTORY STRUCTURE. Note that i will have other files and directories which i dont want to copy to destination. For example, dir source has following content:... (22 Replies)
Discussion started by: dragon.1431
22 Replies

5. Shell Programming and Scripting

Copy files and subdirs from dir to a new dir

Hello Comunity I am trying to make a bash shell script that it copies files and subdirs(with files) to a new dir. I would like the dest_dir to contain only subdirectories with files not other subdirs inside. it called : cpflatdir src_dir dest_dir Pleaze help me! Thank you in... (2 Replies)
Discussion started by: BTKBaaMMM
2 Replies

6. Shell Programming and Scripting

Make directories containing subdirs using mkdir

Hello everybody, I wonder if there's a way to make a directory that contains multiple subdirectories. For example, if I want to make /home/student under the current working directory, how do I do it? Can I do it using a single mkdir command or do I have make home first, cd into it and then make... (1 Reply)
Discussion started by: Yongfeng
1 Replies

7. UNIX for Dummies Questions & Answers

Issues in Csv file transfer copy from one dir to another

Hi Unix community, I got this code from you guys and I tried to modify it to use for my csv dir transfer basically i want the .csv file to copy itself and populate it to the archive dir. #!/bin/ksh dir1="/home/pumela/unixtestprod" cd "$dir1" echo "code is running" for srcd in... (13 Replies)
Discussion started by: phumaree
13 Replies

8. Shell Programming and Scripting

Copy of "How to create a long list of directories with mkdir?"

To bakunin and corona688: My result when text in file is ms_ww_546 ms_rrL_99999 ms_nnn_67_756675 is https://www.unix.com/C:\Users\Fejoz\Desktop\ttt.jpg I hope you can see the picture. There is like a "whitespace character" after 2 of the 3 created directories. ---------- Post... (0 Replies)
Discussion started by: setub
0 Replies

9. Shell Programming and Scripting

How to create a long list of directories with mkdir?

Hi... Thanks to read this... I want to use mkdir to create many directories listed in a text file, let's say. How do I do this? Sorry for this maybe very basic question :) (13 Replies)
Discussion started by: setub
13 Replies
gendesc(1)							   User Manuals 							gendesc(1)

NAME
gendesc - Generate a test case description file SYNOPSIS
gendesc [-h|--help] [-v|--version] [-o|--output-filename filename] inputfile DESCRIPTION
Convert plain text test case descriptions into a format as understood by genhtml. inputfile needs to observe the following format: For each test case: - one line containing the test case name beginning at the start of the line - one or more lines containing the test case description indented with at least one whitespace character (tab or space) Example input file: test01 An example test case description. Description continued test42 Supposedly the answer to most of your questions Note: valid test names can consist of letters, decimal digits and the underscore character ('_'). OPTIONS
-h --help Print a short help text, then exit. -v --version Print version number, then exit. -o filename --output-filename filename Write description data to filename. By default, output is written to STDOUT. AUTHOR
Peter Oberparleiter <Peter.Oberparleiter@de.ibm.com> SEE ALSO
lcov(1), genhtml(1), geninfo(1), genpng(1), gcov(1) 2010-08-06 LCOV 1.9 gendesc(1)
All times are GMT -4. The time now is 01:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy