Double slash to disable line in .ini file? [duplicate] - ini

This question already has answers here:
Do standard windows .ini files allow comments?
(5 answers)
Closed 10 months ago.
Is it a double slash (//) that disables a line in an ini file?
For example:
[SystemSettings]
r.SceneColorFringeQuality=0
// r.MotionBlur.Max=0 //
Or would this be correct?
[SystemSettings]
r.SceneColorFringeQuality=0
; r.MotionBlur.Max=0

Backslash is: \
Forward slash is: /
Comments in .ini file start with # or ;
Reference: https://en.wikipedia.org/wiki/INI_file

Related

Iterate a bash array with spaces in the strings? [duplicate]

This question already has answers here:
When to wrap quotes around a shell variable?
(5 answers)
Bash arbitrary glob pattern (with spaces) in for loop
(2 answers)
Closed 2 years ago.
I'm trying to read a bash array file by file but for files with spaces in them, it comes out as two separate files. How would I solve this?
file names:
file A
fileB
file_C
the output Im getting is like this
File
A
FileB
File_C
What Im trying to do is to get File A on one line
I know I can read the array at once but for now we need to do it with a for loop since we're gonna be doing operations to it later in the loop.
for i in "${array[#]}"; do
echo "$i"
done

Read content of directory file [duplicate]

This question already has answers here:
Using `read` system call on a directory
(2 answers)
Linux C read a directory
(2 answers)
Closed 3 years ago.
It's possible to read a regular file or a symbolic link file ( not the file it's pointing to ).
Is there a way to read the content of a directory file in a file reading fashion (e.g. fread()) .

How to edit stringd in a batch file [duplicate]

This question already has answers here:
Batch string replace
(3 answers)
Closed 6 years ago.
i'm new to batch programming but i cant find how to manipulate string in a specific manner like we would do in C++.
i want to create a batch file which would change.
00:1E:90:75:9F:9F
to
001E90759F9F
maybe you can try this:
sed 's/00:1E:90:75:9F:9F/001E90759F9F/' your_file_name

command line * linux [duplicate]

This question already has answers here:
Stop shell wildcard character expansion?
(4 answers)
Closed 6 years ago.
i'm trying to write code in C,which implements a simple calculator.
the input should come from the command line, so for example i if i run
./calculator 5 * 2
the result should be 10
the problem is that when i write * it shows all the files in the current directory and the program doesnt behave well.
there is anyway to overcome this problem?
i tried to find here or in other sites solutions,without success.
i need that * will Be interpreted as a char and not as a linux command.
thanks.
In linux shell, the * has special meaning. It is meant for globbing unless it is quoted like below
./calculator 5 '*' 2
You may also escape the asterisk to strip the special meaning from it
./calculator 5 \* 2

How to key data containing double quotes using Selenium Webdriver? [duplicate]

This question already has answers here:
Escape double quotes in Java [duplicate]
(4 answers)
Closed 6 years ago.
I'm trying to key a password containing a special character double quotes. I'm getting a compile time error in Java as expected for code mentioned below.
driver.findElement(By.id("cred_password_inputtext"))
.sendKeys("ghsfdjfsg"ksdkhkh");
Use escape character '\' while sending the password. i.e;
driver.findElement(By.id("cred_password_inputtext")).sendKeys("ghsfdjfsg\"ksdkhkh");

Resources