File processing commands in linux in hindi

Linux mein file processing commands ki madad se aap files aur unke contents ko manipulate kar sakte hain. Niche kuch common file processing commands aur unke examples diye gaye hain:

File processing commands in linux in hindi

  1. wc (Word Count):
  • wc command ka istemal text files mein words, lines, aur characters ki counting ke liye hota hai. Example:
   wc file.txt
  1. head (Display First Few Lines):
  • head command ka istemal file ke starting ke kuch lines ko display karne ke liye hota hai. Example:
   head -n 10 file.txt
  1. tail (Display Last Few Lines):
  • tail command ka istemal file ke last ke kuch lines ko display karne ke liye hota hai. Example:
   tail -n 5 file.txt
  1. cut (Cut Out Sections from Lines):
  • cut command ka istemal text lines se specific sections (columns) ko extract karne ke liye hota hai. Example:
   cut -d, -f 1,3 file.csv
  1. paste (Merge Lines from Multiple Files):
  • paste command ka istemal multiple files ke lines ko merge karne ke liye hota hai. Example:
   paste file1.txt file2.txt
  1. join (Join Lines from Two Files):
  • join command ka istemal two files ke common field ke basis par lines ko join karne ke liye hota hai. Example:
   join file1.txt file2.txt
  1. split (Split File into Smaller Files):
  • split command ka istemal large file ko smaller files mein split karne ke liye hota hai. Example:
   split -l 1000 largefile.txt
  1. sort (Sort Lines in Text Files):
  • sort command ka istemal text lines ko sort karne ke liye hota hai. Example:
   sort file.txt
  1. grep (Search):
  • grep command ka istemal text files mein specific pattern ya string ko search karne ke liye hota hai. Example:
   grep "pattern" file.txt
  1. egrep (Extended Search):
    • egrep command bhi text files mein pattern search karne ke liye hota hai, lekin regular expressions ka istemal karke.
    Example: egrep "pattern1|pattern2" file.txt
  2. tr (Translate Characters):
    • tr command ka istemal text characters ko translate aur delete karne ke liye hota hai.
    Example: tr 'a-z' 'A-Z' < input.txt > output.txt
  3. comm (Compare Two Sorted Files):
    • comm command ka istemal do sorted files ko compare karne ke liye hota hai.
    Example: comm file1.txt file2.txt
  4. cmp (Compare Two Files):
    • cmp command ka istemal do files ko byte-by-byte compare karne ke liye hota hai.
    Example: cmp file1.txt file2.txt
  5. diff (Find Differences Between Files):
    • diff command ka istemal do files mein differences ko display karne ke liye hota hai.
    Example: diff file1.txt file2.txt
  6. more (Display Page-Wise):
    • more command ka istemal large files ke content ko page-wise display karne ke liye hota hai.
    Example: more large_file.txt
  7. less (Display Page-Wise):
    • less command bhi large files ko page-wise display karne ke liye hota hai, lekin yeh more feature-rich hota hai.
    Example: less large_file.txt

In commands ka istemal Linux terminal mein kiya ja sakta hai, aur inka istemal files aur text data ko manipulate aur process karne mein kiya jata hai.

Leave a Comment