I reading LSF and saw some operation, description one i am not found. Please tell me what this means: Full code listing: Source: LFS – Host System Requirements Answer This is a globbing wildcard pattern. It causes the shell to expand the line to More on shell expansion and wildcard patterns: http://tldp…
Tag: bash
bash: [: 1+1: integer expression expected
I have a main directory with 40 subdirectories with names [Set 1], [Set 2] … [Set 40], each containing 20 wallpapers with name 1.jpg, 2.jpg, … 20.jpg. I want to move all these wallpapers to the main directory and rename them as 1.jpg, 2.jpg … 800.jpg. I wrote the following Bash script but ge…
Force unmount of usb drive by closing open applications programatically [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Understanding the behavior of grep [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Issue finding the process id from shell scipt
mySample.sh The above command is printing and killing the temporary process that was created for grep Even though i do not have any process running with Abcd, This is printing pid Any ways to ignore it, iam actually ignoring it using grep -v, still… Any Issue in fetching the process id.? Basic command l…
Reshuffling of specific structure file with bash script [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 7 years ago. Improve this question I would appreciate your advice on how to deal with the following problem u…
set line-increment in nl command to a float number
I want to use nl command to do numbering for lines. Is it possible to set line-increment in nl command to a float number. I know that we cant use -i switch to set line-increment like this: but it doesn’t work for float numbers like: I want the output to be like this Answer Could use awk instead With pad…
Script program inputs in bash ubuntu linux [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 7 years ago. Improve this question I’m in a course for C++ programming. Our professor created a linux validation script a…
How can I run a python script on many files to get many output files?
I am new at programming and I have written a script to extract text from a vcf file. I am using a Linux virtual machine and running Ubuntu. I have run this script through the command line by changing my directory to the file with the vcf file in and then entering python script.py. My script knows which file t…
for each line of a file, grep a specific string and make string substitution
I have a file containing more than 14000 records. What I want to do is to process this file line by line and replace a String by anodher string returned by grep command. For example: Line : My grep command to get Class.java string is (Class.java is juste an example): I must, for each line, replace the TAG str…