Search Results

Search: Posts Made By: victorcheung
3,067
Posted By ygemici
# sed 's/.*\([0-9]\{8\}\).*/\1/' infile ...
# sed 's/.*\([0-9]\{8\}\).*/\1/' infile
20070818
20070818
20070820
20070820
3,067
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...
2,251
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

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