• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Co na to poradzić?

vimoco

ۤ
Joined
Jan 11, 2009
Messages
1,011
Reaction score
9
Cześć,

Da się żeby Debian rozczytywał małe i duże litery jako jedno i to samo? Bo mi się krzaczą monstery, chyba że są inne sposoby.. tylko nie ręcznie bo to zejdzie z miech :D
 
Pewnie ręcznie zrobiłbyś szybciej niż szukając skryptu, eh lenistwo.
 
vimoco.rb

Code:
#!/usr/bin/ruby -w
$dirs_to_fetch = []
$checked = 0
def fetcher(dir)
  			 Dir.foreach(dir) do |file|
   	      		 file.gsub!(/\.\./, "")
  	       	`mv #{dir}/#{file} #{dir}/#{file.downcase}` if file != "vimoco.rb" && file.downcase != file
$dirs_to_fetch.push(file.downcase) if File.directory?(file) && file != "."
    			 end
$checked += 1
	end
		fetcher(".")
$dirs_to_fetch.each do |e|
			fetcher(e)
		end
puts "Zrobione! #{$checked} plikow sprawdzono i ewentualnie zmieniono."
 
Back
Top