Search found 2 matches

by jocamcoliveira
08 Nov 2013 11:46
Forum: DOS Batch Forum
Topic: bash script that reads a txt file,stores the numbers within
Replies: 3
Views: 1513

Re: bash script that reads a txt file,stores the numbers wit

Hi foxidrive,thanks in advance.

I tested your code and it works :) But, can you explain me what it does the following part:


'find "/" ^< "disk.txt" ' -> I understand that you search for the first "/" but then what do you do? do you add a % character?
by jocamcoliveira
08 Nov 2013 07:14
Forum: DOS Batch Forum
Topic: bash script that reads a txt file,stores the numbers within
Replies: 3
Views: 1513

bash script that reads a txt file,stores the numbers within

I have a text file with the following information: Filesystem Use% /dev/sda1 44% /dev/sda7 35% /dev/sda3 2% /dev/sda2 5% /dev/sda5 47% tmpfs 0% Now, I want to make a batch file that reads this text file, store the numbers of the lines 2,3,4,5 e 6 into some variables and then compare these numbers wi...