Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: victorcheung
2,096
Posted By ygemici
# sed 's/.*\([0-9]\{8\}\).*/\1/' infile ...
# sed 's/.*\([0-9]\{8\}\).*/\1/' infile
20070818
20070818
20070820
20070820
2,096
Posted By Tytalus
Assuming standard formatting: # echo...
Assuming standard formatting:


# echo "YUENLONG_20070818.DMP" | nawk -F"[_\.]" '{print $2}'
20070818


or if you know these are the only numerics, but position may be an issue:


# echo...
1,896
Posted By zaxxon
-exec of find and xargs expect an executable, a...
-exec of find and xargs expect an executable, a command, not a shell script function afaik. So maybe you assign the output of the find to some variable and hand it over as positional parameter for...
Showing results 1 to 3 of 3

 

Featured Tech Videos

All times are GMT -4. The time now is 06:44 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy