{"id":261506,"date":"2024-07-06T06:57:12","date_gmt":"2024-07-06T06:57:12","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=261506"},"modified":"2024-07-06T06:57:12","modified_gmt":"2024-07-06T06:57:12","slug":"how-to-get-the-first-value-returned-by-find-command","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/","title":{"rendered":"How to get the first value returned by find command?"},"content":{"rendered":"<p>The <code>find<\/code> command is a powerful tool that allows you to search for files and directories based on various criteria. However, when you execute a <code>find<\/code> command, it may return multiple results. In certain situations, you may only want to retrieve the first value returned by the <code>find<\/code> command. Here&#8217;s how you can do it:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#Using_the_-quit_Option\" title=\"Using the -quit Option\">Using the -quit Option<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#1_Can_I_use_multiple_search_criteria_with_the_find_command\" title=\"1. Can I use multiple search criteria with the find command?\">1. Can I use multiple search criteria with the find command?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#2_How_can_I_search_for_directories_instead_of_files\" title=\"2. How can I search for directories instead of files?\">2. How can I search for directories instead of files?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#3_Is_it_possible_to_search_for_files_or_directories_with_a_specific_size\" title=\"3. Is it possible to search for files or directories with a specific size?\">3. Is it possible to search for files or directories with a specific size?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#4_How_do_I_ignore_case_sensitivity_when_searching\" title=\"4. How do I ignore case sensitivity when searching?\">4. How do I ignore case sensitivity when searching?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#5_Can_I_search_across_subdirectories\" title=\"5. Can I search across subdirectories?\">5. Can I search across subdirectories?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#6_What_if_I_want_to_search_for_files_modified_within_a_certain_time_frame\" title=\"6. What if I want to search for files modified within a certain time frame?\">6. What if I want to search for files modified within a certain time frame?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#7_How_can_I_print_the_full_path_of_the_matched_files\" title=\"7. How can I print the full path of the matched files?\">7. How can I print the full path of the matched files?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#8_Is_it_possible_to_execute_a_command_on_each_matched_file\" title=\"8. Is it possible to execute a command on each matched file?\">8. Is it possible to execute a command on each matched file?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#9_Can_the_find_command_filter_files_based_on_permissions\" title=\"9. Can the find command filter files based on permissions?\">9. Can the find command filter files based on permissions?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#10_Is_there_a_way_to_exclude_certain_directories_or_files_from_the_search\" title=\"10. Is there a way to exclude certain directories or files from the search?\">10. Is there a way to exclude certain directories or files from the search?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#11_How_can_I_sort_the_output_of_the_find_command\" title=\"11. How can I sort the output of the find command?\">11. How can I sort the output of the find command?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#12_Can_I_save_the_output_of_the_find_command_to_a_file\" title=\"12. Can I save the output of the find command to a file?\">12. Can I save the output of the find command to a file?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Using_the_-quit_Option\"><\/span>Using the -quit Option<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To get the first value returned by the <code>find<\/code> command, you can utilize the <code>-quit<\/code> option. This option instructs <code>find<\/code> to exit immediately after it finds the first matching file or directory. Here is an example:<\/p>\n<pre><code>find \/path\/to\/search -name \"file.txt\" -type f -print -quit<br \/>\n<\/code><\/pre>\n<p><b>The<\/b> <b>above command searches the directory \/path\/to\/search for files named &#8220;file.txt&#8221;.<\/b> <b>If a match is found, it prints the name of the file and then stops searching immediately.<\/b><\/p>\n<p>Now that you know how to get the first value returned by the <code>find<\/code> command, let&#8217;s address some related frequently asked questions:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1_Can_I_use_multiple_search_criteria_with_the_find_command\"><\/span>1. Can I use multiple search criteria with the <code>find<\/code> command?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can combine several search criteria, such as file type, name, size, and more, to make your <code>find<\/code> command more specific and targeted.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_How_can_I_search_for_directories_instead_of_files\"><\/span>2. How can I search for directories instead of files?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can modify the <code>find<\/code> command by specifying the <code>-type d<\/code> option, which will search for directories instead of files.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Is_it_possible_to_search_for_files_or_directories_with_a_specific_size\"><\/span>3. Is it possible to search for files or directories with a specific size?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use the <code>-size<\/code> option to search for files that have a specific size. For example, <code>-size +1M<\/code> will find files larger than 1MB.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_How_do_I_ignore_case_sensitivity_when_searching\"><\/span>4. How do I ignore case sensitivity when searching?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can use the <code>-iname<\/code> option instead of <code>-name<\/code> to perform a case-insensitive search.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Can_I_search_across_subdirectories\"><\/span>5. Can I search across subdirectories?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>By default, the <code>find<\/code> command searches recursively within the specified directory and its subdirectories. You can use the <code>-maxdepth<\/code> option to limit the depth of the search.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_What_if_I_want_to_search_for_files_modified_within_a_certain_time_frame\"><\/span>6. What if I want to search for files modified within a certain time frame?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can use the <code>-ctime<\/code>, <code>-mtime<\/code>, or <code>-atime<\/code> options to search for files based on their creation, modification, or access times, respectively.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_How_can_I_print_the_full_path_of_the_matched_files\"><\/span>7. How can I print the full path of the matched files?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Using the <code>-print<\/code> option after your search criteria will print the full path of the matched files in the output.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"8_Is_it_possible_to_execute_a_command_on_each_matched_file\"><\/span>8. Is it possible to execute a command on each matched file?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use the <code>-exec<\/code> option followed by the command you want to execute. <code>{} ;<\/code> represents the path of each matched file, and the <code>;<\/code> indicates the end of the command.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_Can_the_find_command_filter_files_based_on_permissions\"><\/span>9. Can the <code>find<\/code> command filter files based on permissions?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use options such as <code>-perm<\/code> and <code>-user<\/code> to search for files with specific permissions or owned by a specific user.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_Is_there_a_way_to_exclude_certain_directories_or_files_from_the_search\"><\/span>10. Is there a way to exclude certain directories or files from the search?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use the <code>-prune<\/code> option to exclude specific directories from the search. Additionally, you can use the <code>! -name<\/code> option to exclude files matching certain patterns.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_How_can_I_sort_the_output_of_the_find_command\"><\/span>11. How can I sort the output of the <code>find<\/code> command?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>You can pipe the output of the <code>find<\/code> command to other utilities like <code>sort<\/code> to sort the results based on specific criteria.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_Can_I_save_the_output_of_the_find_command_to_a_file\"><\/span>12. Can I save the output of the <code>find<\/code> command to a file?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><\/p>\n<p>Yes, you can use the redirection operator (<code>&gt;<\/code>) and specify a filename after it to save the output of the <code>find<\/code> command to a file. For example, <code>find \/path\/to\/search -name \"file.txt\" &gt; output.txt<\/code>.<\/p>\n<p>By understanding how to retrieve the first value returned by the <code>find<\/code> command and exploring its various options and modifiers, you can efficiently search for files and directories matching specific criteria.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The find command is a powerful tool that allows you to search for files and directories based on various criteria. However, when you execute a find command, it may return multiple results. In certain situations, you may only want to retrieve the first value returned by the find command. Here&#8217;s how you can do it: &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to get the first value returned by find command?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#more-261506\">Read more<span class=\"screen-reader-text\">How to get the first value returned by find command?<\/span><\/a><\/p>\n","protected":false},"author":66,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-261506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to get the first value returned by find command?<\/title>\n<meta name=\"description\" content=\"The find command is a powerful tool that allows you to search for files and directories based on various criteria. However, when you execute a find\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to get the first value returned by find command?\" \/>\n<meta property=\"og:description\" content=\"The find command is a powerful tool that allows you to search for files and directories based on various criteria. However, when you execute a find\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-06T06:57:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jamie Steele\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jamie Steele\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/\"},\"author\":{\"name\":\"Jamie Steele\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/4938663f06a1cff2dff5c1af38d151c0\"},\"headline\":\"How to get the first value returned by find command?\",\"datePublished\":\"2024-07-06T06:57:12+00:00\",\"dateModified\":\"2024-07-06T06:57:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/\"},\"wordCount\":560,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/\",\"name\":\"How to get the first value returned by find command?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-07-06T06:57:12+00:00\",\"dateModified\":\"2024-07-06T06:57:12+00:00\",\"description\":\"The find command is a powerful tool that allows you to search for files and directories based on various criteria. However, when you execute a find\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to get the first value returned by find command?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/4938663f06a1cff2dff5c1af38d151c0\",\"name\":\"Jamie Steele\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Jamie Steele\"},\"description\":\"Guest author Jamie Steele has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to get the first value returned by find command?","description":"The find command is a powerful tool that allows you to search for files and directories based on various criteria. However, when you execute a find","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:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/","og_locale":"en_US","og_type":"article","og_title":"How to get the first value returned by find command?","og_description":"The find command is a powerful tool that allows you to search for files and directories based on various criteria. However, when you execute a find","og_url":"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-07-06T06:57:12+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Jamie Steele","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Jamie Steele","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/"},"author":{"name":"Jamie Steele","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/4938663f06a1cff2dff5c1af38d151c0"},"headline":"How to get the first value returned by find command?","datePublished":"2024-07-06T06:57:12+00:00","dateModified":"2024-07-06T06:57:12+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/"},"wordCount":560,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/","url":"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/","name":"How to get the first value returned by find command?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-07-06T06:57:12+00:00","dateModified":"2024-07-06T06:57:12+00:00","description":"The find command is a powerful tool that allows you to search for files and directories based on various criteria. However, when you execute a find","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-get-the-first-value-returned-by-find-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to get the first value returned by find command?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/4938663f06a1cff2dff5c1af38d151c0","name":"Jamie Steele","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Jamie Steele"},"description":"Guest author Jamie Steele has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/261506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=261506"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/261506\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=261506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=261506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=261506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}