Search Results

Search: Posts Made By: xb88
14,277
Posted By xb88
I agree - it's up to you. I like to use cat to...
I agree - it's up to you. I like to use cat to pipe everything to next command. The above command is the same as following:

sed -n -e 's/.*\([0-9]\{10\}\).*/\1/p' t1.txt t2.txt t3.txt t4.txt t5.txt
14,277
Posted By xb88
send the contents of the files (1 -5) to sed...
send the contents of the files (1 -5) to sed command for processing.
14,277
Posted By xb88
Try this: your_variable=`cat t1.txt t2.txt...
Try this:

your_variable=`cat t1.txt t2.txt t3.txt t4.txt t5.txt | sed -n -e 's/.*\([0-9]\{10\}\).*/\1/p'`
Showing results 1 to 3 of 3

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