Search Results

Search: Posts Made By: cnrj
2,397
Posted By RudiC
Search the forums. Exactly this question has been...
Search the forums. Exactly this question has been answered a few days ago.
2,397
Posted By MR.bean
Try this filecount=$(find . -type f...
Try this


filecount=$(find . -type f -name "*.csv" | wc -l)
2,397
Posted By kshji
This give the number of csv files in current...
This give the number of csv files in current directory tree.

count=$( find . -type f -name "*.csv" | wc -l )
echo $count
2,397
Posted By MadeInGermany
find . -type f -name "*.csv" | wc -lThis gives...
find . -type f -name "*.csv" | wc -lThis gives only a number, and can be stored in a variable as you did.
But storing the list in a variable can lead to a "too long" error in the shell.
1,321
Posted By Tytalus
using (n)awk: # nawk...
using (n)awk:


# nawk 'NR==FNR{x[$1]=$2;next}{print x[$1]}' map infile
2
45
2
56
98
6598
98
56
56
98
98


HTH
Showing results 1 to 5 of 5

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