Hello,
I have a file of contact numbers that I find I grep with great regularity. I have been trying to alias the command that I usually use
'$ more [filename] | grep [string]'
to a single charecter such as 'z' and enter the string to be grepped for after the aliased 'z'
$zDa If I were to look for Dave's contact details.
Have found lots on the alias and grep cmds but nothing on being able to link them. I am sure this must be possible but with little actual scripting exp am going round in circles, any help gratefully recieved.
I have a file of contact numbers that I find I grep with great regularity. I have been trying to alias the command that I usually use
'$ more [filename] | grep [string]'
to a single charecter such as 'z' and enter the string to be grepped for after the aliased 'z'
$zDa If I were to look for Dave's contact details.
Have found lots on the alias and grep cmds but nothing on being able to link them. I am sure this must be possible but with little actual scripting exp am going round in circles, any help gratefully recieved.