Please tell me a unix command or utility for splitting of a very big text file into small files of say 2 lines each. For now I wrote my own script to do the job but I am looking for some standard command/utility.
I need to find the count of a character or a set of characters in a file. Is there a unix command for that?
Like for given file I need to find out number of occurences of "af":
afbcd efg abef akljklj jklj ljlj
ljlkj jflja fjklja j ljkfaj jkj
jljaf jflaj jafj;ajj;jj jlkj;
I want to write shell script which takes some flags along with input parameters. What I mean is like ls which can take input as parameters filename/file directory alongwith flags like -l, -m, -a etc.
ls -latr *.txt
This way I want to write my script as
myscript -w myinput
Also do correct me...
My understanding is that random numbers are unpredictable. They may or may not repeat however big the size of range of random numbers is. The only condition they satisfy is that you cannot predict what the next number will be irrespective of what the last number was(it can still be the same as...
In the given code I am facing the following problem (steps given):
1) I update a number of records (10 in numbers here) with status as 'P' (to be processed)
2) I run a cursor for the record marked 'P'.
3) The cursor fetches (inner while loop) only 3 or 4 and then mark @@sqlstatus as 2. It marks...
You can find the description of various errors at the website:
http://www.ianywhere.com/developer/product_manuals/sqlanywhere/0902/en/html/dberen9/00000011.htm
I am pasting the values for your reference:
Sybase error code Adaptive Server Anywhere SQLCODE Error message
0 –631 RAISERROR...
I want to find out the activities done by a shell script at any particular instance using the values they set for a variable. I have a few processes running and the scripts use a number of variables. I want to see the values set by each of these processes without myself running the processes. I...
For a few days I am trying to find out which of the two processors - Intel Pentium or AMD is value for money for PCs or laptops. AMD processors are lot cheaper than Pentium and as per their logo they are compatible with windows XP also. I read the comparison of the two in site...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.