I want to make a script which, split the first column into parts (101-110, 111-120...), and make directories for its part with name (101-110, 111-120...) Also i want in every directory include a file with all data from every part.
Example: directory name ( 111-115 ) --> file name ( f_111-115 ) --> fle data
Please become accustomed to provide decent context info of your problem.
It is always helpful to carefully and detailedly phrase a request, and to support it with system info like OS and shell, related environment (variables, options), preferred tools, adequate (representative) sample input and desired output data and the logics connecting the two including your own attempts at a solution, and, if existent, system (error) messages verbatim, to avoid ambiguities and keep people from guessing.
Please show your attempts for analysis and discussion.
And, be consistent when phrasing your request. Do you want steps of 10 for your bin size (as in the written spec), or steps of 5 (as in your example)?
I'm sorry i'm beginner in unix. I want to make a script in vi. My step is a variable $n given by the user.
I didn't post my attempts because they working totally wrong (probably i use wrong commands).