Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 848  / 2 Years ago, sun, january 23, 2022, 2:06:58

My bash script does many things, among which creating another script. I would like to have the following line to be executed from within a script. But it does not work (grep is executed instead of pasted in search.sh). What am I doing wrong?




cat "grep --ignore-case $1 *.find" > search.sh



More From » bash

 Answers
7

You're using the wrong command.



echo "grep --ignore-case $1 *.find" > search.sh

[#39772] Monday, January 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowovey

Total Points: 287
Total Questions: 98
Total Answers: 117

Location: Bosnia and Herzegovina
Member since Thu, Jan 14, 2021
3 Years ago
;