Unlock the Power of Open Source: New Linux Certification is now on Swayam Plus.
Course Start Date: 2nd February 2026; Course End Date: 2nd April 2026.
This is a sample video. To access the full content, please Login
what is role of grep command?
can grep command be used for searching info in other file types also such as spreadsheets etc
I would like to know the output of the command: $grep f1 f2 f3
1201 visits
Outline:grep ਕਮਾਂਡ ਫਾਇਲ ਦੇ ਕੰਟੇਂਟ ਨੂੰ ਵੇਖਣਾ । ਇੱਕ ਵਿਸ਼ੇਸ਼ ਸਟਰੀਮ ਦੀਆਂ ਐਂਟਰੀਸ ਦੀ ਸੂਚੀ ਬਣਾਉਣਾ । ਕੇਸੇਸ ਨੂੰ ਅਣਡਿੱਠਾ ਕਰਨਾ । ਲਾਈਨਾ ਜੋ ਪੈਟਰਨ ਨੂੰ ਨਹੀਂ ਮਿਲਾਉਂਦੀਆਂ । ਐਂਟਰੀਸ ਦੇ ਨਾਲ ਲਾਇਨ ਨੰਬਰਸ ਦੀ ਸੂਚੀ ਬਣਾਉਣਾ । ਨਤੀਜੇ ਨੂੰ ਕਿਸੇ ਹੋਰ ਫਾਇਲ ਵਿੱਚ ਸਟੋਰ ਕਰਨਾ । ਗਿਣਤੀ ਨੂੰ ਜਾਣਨਾ ।
grep ਕਮਾਂਡ ਫਾਇਲ ਦੇ ਕੰਟੇਂਟ ਨੂੰ ਵੇਖਣਾ । ਇੱਕ ਵਿਸ਼ੇਸ਼ ਸਟਰੀਮ ਦੀਆਂ ਐਂਟਰੀਸ ਦੀ ਸੂਚੀ ਬਣਾਉਣਾ । ਕੇਸੇਸ ਨੂੰ ਅਣਡਿੱਠਾ ਕਰਨਾ । ਲਾਈਨਾ ਜੋ ਪੈਟਰਨ ਨੂੰ ਨਹੀਂ ਮਿਲਾਉਂਦੀਆਂ । ਐਂਟਰੀਸ ਦੇ ਨਾਲ ਲਾਇਨ ਨੰਬਰਸ ਦੀ ਸੂਚੀ ਬਣਾਉਣਾ । ਨਤੀਜੇ ਨੂੰ ਕਿਸੇ ਹੋਰ ਫਾਇਲ ਵਿੱਚ ਸਟੋਰ ਕਰਨਾ । ਗਿਣਤੀ ਨੂੰ ਜਾਣਨਾ ।
Show video info
Pre-requisite