{"id":19,"date":"2009-10-09T12:37:24","date_gmt":"2009-10-09T12:37:24","guid":{"rendered":"http:\/\/anyons.net\/dev\/?p=19"},"modified":"2022-07-12T14:49:28","modified_gmt":"2022-07-12T05:49:28","slug":"%eb%82%a0%ec%9e%90%eb%a1%9c-%ed%8c%8c%ec%9d%bc%eb%aa%85-%ec%83%9d%ec%84%b1","status":"publish","type":"post","link":"https:\/\/anyons.net\/?p=19","title":{"rendered":".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131"},"content":{"rendered":"<pre class=\"lang:batch decode:true \">set yyyy=%date:~0,4%\nset mm=%date:~5,2%\nset dd=%date:~8,2%\necho group%yyyy%%mm%%dd%.log &gt;&gt; file.txt<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>set yyyy=%date:~0,4% set mm=%date:~5,2% set dd=%date:~8,2% echo group%yyyy%%mm%%dd%.log &gt;&gt; file.txt <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[93,96],"tags":[114],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-command","category-programming","tag-bat","odd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>.bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131 - anydragon<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/anyons.net\/?p=19\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131 - anydragon\" \/>\n<meta property=\"og:description\" content=\"set yyyy=%date:~0,4% set mm=%date:~5,2% set dd=%date:~8,2% echo group%yyyydd%.log &gt;&gt; file.txt\" \/>\n<meta property=\"og:url\" content=\"https:\/\/anyons.net\/?p=19\" \/>\n<meta property=\"og:site_name\" content=\"anydragon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:published_time\" content=\"2009-10-09T12:37:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-12T05:49:28+00:00\" \/>\n<meta name=\"author\" content=\"anydragon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@anydragon\" \/>\n<meta name=\"twitter:site\" content=\"@anydragon\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"anydragon\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=19#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=19\"},\"author\":{\"name\":\"anydragon\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"headline\":\".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131\",\"datePublished\":\"2009-10-09T12:37:24+00:00\",\"dateModified\":\"2022-07-12T05:49:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=19\"},\"wordCount\":1,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"keywords\":[\"bat\"],\"articleSection\":[\"Command\",\"Programming\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=19#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=19\",\"url\":\"https:\\\/\\\/anyons.net\\\/?p=19\",\"name\":\".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131 - anydragon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\"},\"datePublished\":\"2009-10-09T12:37:24+00:00\",\"dateModified\":\"2022-07-12T05:49:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=19#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=19\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=19#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/anyons.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\",\"url\":\"https:\\\/\\\/anyons.net\\\/\",\"name\":\"anydragon\",\"description\":\"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang\",\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/anyons.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\",\"name\":\"anydragon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"url\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"contentUrl\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"width\":2560,\"height\":1440,\"caption\":\"anydragon\"},\"logo\":{\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\"},\"sameAs\":[\"http:\\\/\\\/anyons.net\",\"https:\\\/\\\/www.facebook.com\\\/anydragon\",\"https:\\\/\\\/x.com\\\/anydragon\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCr78KWpvmk398vPfpUTWNLg\"],\"url\":\"https:\\\/\\\/anyons.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131 - anydragon","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/anyons.net\/?p=19","og_locale":"ko_KR","og_type":"article","og_title":".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131 - anydragon","og_description":"set yyyy=%date:~0,4% set mm=%date:~5,2% set dd=%date:~8,2% echo group%yyyydd%.log &gt;&gt; file.txt","og_url":"https:\/\/anyons.net\/?p=19","og_site_name":"anydragon","article_publisher":"https:\/\/www.facebook.com\/anydragon","article_author":"https:\/\/www.facebook.com\/anydragon","article_published_time":"2009-10-09T12:37:24+00:00","article_modified_time":"2022-07-12T05:49:28+00:00","author":"anydragon","twitter_card":"summary_large_image","twitter_creator":"@anydragon","twitter_site":"@anydragon","twitter_misc":{"\uae00\uc4f4\uc774":"anydragon"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/anyons.net\/?p=19#article","isPartOf":{"@id":"https:\/\/anyons.net\/?p=19"},"author":{"name":"anydragon","@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"headline":".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131","datePublished":"2009-10-09T12:37:24+00:00","dateModified":"2022-07-12T05:49:28+00:00","mainEntityOfPage":{"@id":"https:\/\/anyons.net\/?p=19"},"wordCount":1,"commentCount":0,"publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"keywords":["bat"],"articleSection":["Command","Programming"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/anyons.net\/?p=19#respond"]}]},{"@type":"WebPage","@id":"https:\/\/anyons.net\/?p=19","url":"https:\/\/anyons.net\/?p=19","name":".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131 - anydragon","isPartOf":{"@id":"https:\/\/anyons.net\/#website"},"datePublished":"2009-10-09T12:37:24+00:00","dateModified":"2022-07-12T05:49:28+00:00","breadcrumb":{"@id":"https:\/\/anyons.net\/?p=19#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/anyons.net\/?p=19"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/anyons.net\/?p=19#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/anyons.net\/"},{"@type":"ListItem","position":2,"name":".bat \ub0a0\uc790\ub85c \ud30c\uc77c\uba85 \uc0dd\uc131"}]},{"@type":"WebSite","@id":"https:\/\/anyons.net\/#website","url":"https:\/\/anyons.net\/","name":"anydragon","description":"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang","publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/anyons.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":["Person","Organization"],"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b","name":"anydragon","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","url":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","contentUrl":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","width":2560,"height":1440,"caption":"anydragon"},"logo":{"@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg"},"sameAs":["http:\/\/anyons.net","https:\/\/www.facebook.com\/anydragon","https:\/\/x.com\/anydragon","https:\/\/www.youtube.com\/channel\/UCr78KWpvmk398vPfpUTWNLg"],"url":"https:\/\/anyons.net\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":2227,"url":"https:\/\/anyons.net\/?p=2227","url_meta":{"origin":19,"position":0},"title":"Ubuntu zsh vim Setting","author":"anydragon","date":"2021\ub144 03\uc6d4 30\uc77c","format":false,"excerpt":"apt install build-essential apt install net-tools apt install openssh-server systemctl enable ssh systemctl restart ssh apt install curl apt install tmux apt install mc apt install git apt install zsh sh -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/ohmyzsh\/ohmyzsh\/master\/tools\/install.sh)\" chsh -s \/usr\/bin\/zsh # logout \ud544\uc694 zsh # \uc77c\ub2e8 \ud55c\ubc88 \uc2e4\ud589 git clone https:\/\/github.com\/zsh-users\/zsh-autosuggestions.git $ZSH_CUSTOM\/plugins\/zsh-autosuggestions\u2026","rel":"","context":"&quot;Configuration&quot;\uc5d0\uc11c","block_context":{"text":"Configuration","link":"https:\/\/anyons.net\/?cat=94"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2589,"url":"https:\/\/anyons.net\/?p=2589","url_meta":{"origin":19,"position":1},"title":"mac osx zsh neovim \ud658\uacbd\uc124\uc815","author":"anydragon","date":"2022\ub144 07\uc6d4 02\uc77c","format":false,"excerpt":"~\/.zshrc # Set name of the theme to load --- if set to \"random\", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https:\/\/github.com\/ohmyzsh\/ohmyzsh\/wiki\/Themes #ZSH_THEME=\"robbyrussell\" ZSH_THEME=\"agnoster\" # Uncomment the following line\u2026","rel":"","context":"&quot;Configuration&quot;\uc5d0\uc11c","block_context":{"text":"Configuration","link":"https:\/\/anyons.net\/?cat=94"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1184,"url":"https:\/\/anyons.net\/?p=1184","url_meta":{"origin":19,"position":2},"title":"mac \uc5d0\uc11c iso\ub85c boot usb \ub97c \ub9cc\ub4e4\uace0 \uc2f6\uc744\ub54c","author":"anydragon","date":"2015\ub144 12\uc6d4 15\uc77c","format":false,"excerpt":"sudo dd if=.\/Acronis.True.Image.2016.19.0.5634.iso of=\/dev\/rdisk4s1 bs=1m;","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"find-disk-identifier-diskutil-mac-osx-610x292","src":"https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2015\/12\/find-disk-identifier-diskutil-mac-osx-610x292.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2015\/12\/find-disk-identifier-diskutil-mac-osx-610x292.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2015\/12\/find-disk-identifier-diskutil-mac-osx-610x292.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":20,"url":"https:\/\/anyons.net\/?p=20","url_meta":{"origin":19,"position":3},"title":"sql server \ubc31\uc5c5\uc744 \ud558\uac8c \ud558\uae30 \uc704\ud55c \uc2a4\ud06c\ub9bd\ud2b8","author":"anydragon","date":"2009\ub144 10\uc6d4 09\uc77c","format":false,"excerpt":"\"C:\\Program Files\\Microsoft SQL Server90\\Tools\\Binn\\sqlcmd\" -S localhost -i e:\\Backupbackup.sql \ud480\ubc31\uc5c5 declare @runtime nvarchar(10) declare @backupdevice nvarchar(100) declare @backupname nvarchar(100) set @runtime = substring(convert(nvarchar(20), getdate(), 8) ,1,2) set @backupdevice = N'e:\\Backupbackup_' + @runtime + N'.bak' set @backupname = N'backup_' + @runtime BACKUP DATABASE [TU] TO DISK = @backupdevice WITH NOFORMAT, INIT, NAME\u2026","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2502,"url":"https:\/\/anyons.net\/?p=2502","url_meta":{"origin":19,"position":4},"title":"csharp \uba87\uba87 \ucf54\ub4dc \ub2e8\uc21c\ud654","author":"anydragon","date":"2022\ub144 04\uc6d4 11\uc77c","format":false,"excerpt":"in \ub9e4\uac1c \ubcc0\uc218 \/\/ \uc5ec\uae30\uc11c\uc758 in\uc740 ref readonly\ucc98\ub7fc \uc791\ub3d9\ud568 \ud568\uc218 call\uc2dc\uc5d0\ub294 in\uc744 \uc4f0\uac70\ub098 \ub9d0\uac70\ub098 \ub3d9\uc77c void PrintDate(in DateTime date) { Console.WriteLine(date); } null \uad00\ub828 \uc5f0\uc0b0\uc790 \/\/ \uc624\ub798\uc804 instance = instance == null ? value : instance; \/\/ \uae30\uc874 instance = instance ?? value; \/\/ \ud604\uc7ac instance ??= value; Auto Property\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":503,"url":"https:\/\/anyons.net\/?p=503","url_meta":{"origin":19,"position":5},"title":"\uc6b0\ubd84\ud22c \ud55c \ud558\ub4dc\ub514\uc2a4\ud06c\uc5d0\uc11c \ub2e4\ub978 \ud558\ub4dc\ub514\uc2a4\ud06c\ub85c \ud1b5\uc9f8\ub85c \uc62e\uae38\ub54c","author":"anydragon","date":"2013\ub144 01\uc6d4 21\uc77c","format":false,"excerpt":"\ucd9c\ucc98 : http:\/\/www.phpschool.com\/gnuboard4\/bbs\/board.php?bo_table=tipntech&wr_id=66063&sca=&sfl=wr_name%7C%7Csubject&stx=%BC%DB%C8%BF%C1%F8&sop=and&page=4 \ud604\uc7ac \uad6c\ub3d9\uc911\uc778 \ud30c\ud2f0\uc158\uc744 \ubcf5\uc0ac\ud558\ub294\uac74 \ube44\ucd94. (\ub370\uc774\ud130\uac00 \ubcc0\ud558\ubbc0\ub85c)\uc6b0\ubd84\ud22c \ub370\uc2a4\ud06c\ud0d1 CD \ub85c \ubd80\ud305\ud558\uba74 hdd \ub3c4\uc6c0 \uc5c6\uc774 \ubd80\ud305\ub428. (\ub77c\uc774\ube0cCD \ub77c\uace0 \ud568.) \uac01\uac01 \ub9c8\uc6b4\ud2b8 \ud574 \uc90c. rsync -aHAX old\/* new\/ \uc774\ub807\uac8c \ud558\uba74 \uc2dc\uac04\uae4c\uc9c0 \uace0\ub300\ub85c \ubcf5\uc0ac \ub428.old\/ new\/ \uc774\ub807\uac8c \ud558\uba74 new\/old\/ \ub85c \ubcf5\uc0ac\ub418\ub2c8 \uc8fc\uc758. dd, cat \ub4f1\ub4f1\uc758 \ubc29\uc2dd\uc740 \uac19\uc740\uc6a9\ub7c9\uc73c\ub85c \uace0\uc815\ub41c\ub2e4\ub294 \ub2e8\uc810\uc774 \uc788\uc74c.tar\u2026","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":0,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}