Search Results

Search: Posts Made By: cuitao
3,745
Posted By cuitao
another option: typeset -L9 a a=<the...
another option:
typeset -L9 a
a=<the number>
5,997
Posted By cuitao
your description is too vague to translate into...
your description is too vague to translate into code segment. You'd better describe in details how you gonna check the first two columns before others can post the solution;)
8,763
Posted By cuitao
your guess about the [] is correct. and the $...
your guess about the [] is correct. and the $ represents the end of the line.
27,489
Posted By cuitao
If all the characters before the comma(,) are all...
If all the characters before the comma(,) are all digits, then you can do this by running the following command:
sed 's/^\([0-9][0-9]*\)/\1,/' a
8,763
Posted By cuitao
or, your sed command can be revised to the...
or, your sed command can be revised to the following:
echo $path | sed 's/\/[^\/]*txt$//'
Showing results 1 to 5 of 5

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