i ont filw avec containtent comme suit:comment rechercher un motif dans un fichier et afficher la ligne sur le terminal?
pid 4565 Process: /my/name/is/4678 +34787[d][email protected]##$
pid 33453 Process: /my/name/is/4678 +34787[d][email protected]##werwer$
pid 3453345 Process: /my/name/is/4678 +3478[7][email protected]##$
pid 12335 Process: /my/name/is/4678 +3478se[r][email protected]##$
i besoin ligne contaning "34787 [d] sfh888dfsj @ ## werwer $" ce modèle et ont besoin d'obtenir toute cette ligne sur le terminal ou peut nè redirigé vers un autre fichier. Toute suggestion? Merci d'avance.
'man grep'? cela pourrait-il fonctionner pour toi? –
@ALL Merci pour le support, j'ai obtenu la sortie requise avec l'utilisation de l'option -a, Parce que mon fichier était un fichier binaire, donc pour rechercher un motif nous avons besoin d'une option comme suit: grep -a "mon_pattern" file.log – BSalunke