02-14-2008
I have spillted the whole file and how i can know the big file is splitted in to how many files.
big file may vary in size every time.
iam splliting with 50000 records each file. and i want to know how many files it has splited. every time.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Can anyone provide me any checklists or a list of steps I should follow before executing my scripts.
Could also tell me if there are any other standards to be followed while shell programming like naming conventions for variables etc.
Your help would be much appreciated.
Regards,... (2 Replies)
Discussion started by: srikanth_ksv
2 Replies
2. Shell Programming and Scripting
Hi,
i want to read a full file.
If i want to split the file and by reading parralel each, i can save the time.
Can any body give me the suggesion??
ia m using this function to read a file and using that i have to grep in another file. since the file 1 is huge it is taking lot of time.
... (3 Replies)
Discussion started by: nivas
3 Replies
3. Shell Programming and Scripting
Hi,
I am looking for a PDF or an e-book which can show in details how to do Shell Scripting or Programming. Can anybody provide me with a link to such a tutorial? I have downloaded some tutorials but they show only basics and not give any in-depth study material.
I am using Red Hat Linux... (2 Replies)
Discussion started by: indiansoil
2 Replies
4. Shell Programming and Scripting
Hi Gurus
I am very new to Unix Shell Prog. I have a file in format
Q1 Dirname-FileName Score Remarks
i.e. containing columns separated by space. I want to read Column 1 and 2 and then join them to make a string that would be a path to a file. I will use this string to fetch the files and... (4 Replies)
Discussion started by: kimskams80
4 Replies
5. Shell Programming and Scripting
#!bin/sh
`clear`
for i in $(seq -w 15 37);
do
#echo $i
wget --dns-timeout=0.0005 http://napdweb${i}.eao.abn-iad.ea.com:8000/webcore/test/test.jsp -o 1
A=`cat 1`
C=$(expr "$A" :... (7 Replies)
Discussion started by: veerumahanthi41
7 Replies
6. UNIX for Dummies Questions & Answers
How does unix system administration, unix programming, unix network programming differ?
Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies
7. Shell Programming and Scripting
Hi guys
i have two different line
input
M5.7&a : M5 minimum density is 20%, maximum density is 80%,
DENSITY PERM=M5.8&a(180) ......... 6 violations found.
M6.7&a : M6 minimum density is 20%, maximum density is 80%,
DENSITY A=M6.8&a(180) ......... 6 violations found.
need... (2 Replies)
Discussion started by: ashokkrishna063
2 Replies
8. Shell Programming and Scripting
Guys,
What do you think is the best way to learn UNIX and shell scripting?
** I keep on searching tutorials online, where I loose most of my time :(
Let me know the way you learnt the UNIX concepts, your replies might help me learn more.
Thanks a ton:b: (2 Replies)
Discussion started by: dnam9917
2 Replies
9. Shell Programming and Scripting
Hello! :)
I currently got the task of programming a UNIX Shell for practice. The functionality is as follows:
1. Entering commands with the keyboard. Enter stops the input and creates a process which should start any program
2. the shell waits for termination of each command before... (1 Reply)
Discussion started by: DarkDan
1 Replies
10. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Hello! :)
I currently got the task of programming a UNIX Shell for practice. The functionality is as follows:
1. Entering commands with the keyboard. Enter stops the input and creates a process which should start any program
2.... (0 Replies)
Discussion started by: DarkDan
0 Replies
SPLIT(1) General Commands Manual SPLIT(1)
NAME
split - split a file into pieces
SYNOPSIS
split [ option ... ] [ file ]
DESCRIPTION
Split reads file (standard input by default) and writes it in pieces of 1000 lines per output file. The names of the output files are xaa,
xab, and so on to xzz. The options are
-n Split into n-line pieces.
-e expression
File divisions occur at each line that matches a regular expression; see regexp(6). Multiple -e options may appear. If a subex-
pression of expression is contained in parentheses (...), the output file name is the portion of the line which matches the subex-
pression.
-f stem
Use stem instead of x in output file names.
-s suffix
Append suffix to names identified under -e.
-x Exclude the matched input line from the output file.
-i Ignore case in option -e; force output file names (excluding the suffix) to lower case.
SOURCE
/sys/src/cmd/split.c
SEE ALSO
sed(1), awk(1) grep(1), regexp(6)
SPLIT(1)