Search Results

Search: Posts Made By: eXPlosion
1,575
Posted By eXPlosion
Regular expresion
Here's my script

read number
if echo $number | grep "[0-9][^a-zA-Z]"

I want this "if" statement to return true only when numbers without letters is matched.
For example 45 - true, 923 - true,...
1,987
Posted By eXPlosion
thanks, but as you see, in the second line there...
thanks, but as you see, in the second line there are no leading slash "/" before word "bash" and this script leaves space there :
almantas 31979 12082 0 00:00:06 pts/2 bash
1,987
Posted By eXPlosion
Sed question
I have following input:

almantas 31949 1 0 00:00:08 ? /usr/bin/pulseaudio -D --log-target=syslog
almantas 31979 12082 0 00:00:06 pts/2 bash
almantas 31991 31949 0 00:00:00 ? ...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 12:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy