How to read a specific line data [duplicate] - vbscript

This question already has answers here:
VBScript to read specific line and extract characters and store it as a variable
(2 answers)
How to delete the first row in the .csv file
(2 answers)
Closed 5 years ago.
I want to read a specific line from the text file using VBScript.
I have explored Read and ReadLine methods but I can't able to read only specific line from text file. (I have 1000 of line but I want to read only 99 or 200 or 500 line only)

The question may be similar to the questions those duplicate hunters pointed to, but the answers are - for different reasons - of no use. A good answer could be build from one answer to the completely different question here.
Now to the answer:
Use a .SkipLine loop to read to the line before you are interested in and get it using .ReadLine.

Related

What does ENV=${deploy-qa} mean in bash? How does it evaluate to "qa"? [duplicate]

This question already has answers here:
What does the '-' (dash) after variable names do here?
(3 answers)
Usage of :- (colon dash) in bash
(2 answers)
Closed 2 years ago.
ENV=${deploy-qa}
echo $ENV
qa
Relatively new to bash and I'm trying to set up a pipeline that switched based off the ending of a string and accidentally stumbled across this. I'm unsure how this actually returns 'qa' though. This is what I was looking to do, but I'd like to understand what's actually happening. I dont understand whats causing the 'deploy-' bit to drop off.

Comment multiple lines in Xcode 9 [duplicate]

This question already has answers here:
Is there a shortcut to make a block comment in Xcode?
(21 answers)
Closed 5 years ago.
How can we comment multiple lines in Xcode 9. I know about Command + /
But This inserts // in front of every selected line.
But I want it like /*......*/
Xcode does not provide that type of comment (/* .. */) in shorthand in any version so nothg different in x-code 9 regarding this,
check this -> https://forums.developer.apple.com/thread/49473
So for code commenting do anyone of follow
cmd+/ is used for // the multiple lines,
For /* ... */ either you have to manually
can create code snipplet. No other option is available.
Code Snipplet

Commas in path - .NET [duplicate]

This question already has answers here:
Commas in WPF Pack URIs
(2 answers)
Closed 7 years ago.
I am working on some code that has paths that look like this:
"pack://application:,,,/FOO.Bar.Baz;component/Gorp/bazzle.xaml"
What do the 3 commas mean, and what is this path referencing?
Typically they are placeholders for parameters that were not supplied. It usually means ... "use the default values" for those parameters.

unix command to change file name [duplicate]

This question already has answers here:
How to do a mass rename?
(11 answers)
Closed 9 years ago.
I have to change
<<STORE>>SA_MASTER_YYYMMDDHHMMSS.dat file name to
SA_MASTERYYYMMDDHHMMSS.<<STORE>>. Please tell me the command in unix to achieve this
for example
0001.SAMASTER_YYYYMMDDHHMMSS.DAT should be changed to SAMASTER_YYYYMMDDHHMMSS.1 ie if the store has leading zero(0001) i have to eliminate the zeros(1)
use mv.
e.G. mv 0001.SAMASTER_YYYYMMDDHHMMSS.DAT SAMASTER_YYYYMMDDHHMMSS.1
For the interpretation you will need to write some script.
See How to do a mass rename? for further answers.
Of course, the direct method is using mv. However, if you want to rename a lot of files' names, you need write a program, you need sed,cut and so on

how to get line number in code editor in vs2008? [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How do I enable line numbers in VS2008?
how to get line number in code editor in vs2008?
Tools...Options...Text Editor....All Languages... Display... Line Numbers.
go to tool>option>text editor check 'line number'

Resources