Search results

  1. K

    bash script, find amount of strings in files

    I finished my script: todays_day=$(date +%d) if ((todays_day==1)); then month="$(date --date='1 day ago' +%y%m)" else month="$(date +%y%m)" fi for file in $(find ./ -type d -name "$month") do echo "number of lines $(find $catalog -type f -name "*.z" | xargs zcat | awk 1 | wc -l);source...
  2. K

    bash script, find amount of strings in files

    "amount of strings" actually as "number of lines - yeah, i mean number of lines in .z files which is in parent folders of current/ No, it is not a homework. I work as database integrator with teradata, vertica, odi, mssql and so on. And now studying bash scripts doing that job then get up my skills
  3. K

    bash script, find amount of strings in files

    As i understand in these fragment path=$(find ./ -type d -name "$folder") i send several paths and my cycle try to process it all What's why it doesn't work? And how can i fix it?
  4. K

    bash script, find amount of strings in files

    Hello everyone! I am writing script which must count amount of strings in files .z format. Name of folder can changes in dependence of current date, if it's 1-st date of the month script count amount in folder which is called 2210 (previous month ) if today is not 1-st day of month then folder...
Top