C/C++ code of cut command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting C/C++ code of cut command
# 1  
Old 08-22-2013
C/C++ code of cut command

hi all,

can any one tell me c/c++ code for cut command of shell

Thanks
# 2  
Old 08-22-2013
There are plenty of open source implementations; the GNU coreutils, Busybox, OpenBSD, NetBSD, and FreeBSD code repositories are all freely available on the web.

Regards,
Alister
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cut command: can't make it cut fields

I'm a complete beginner in UNIX (and not a computer science student either), just undergoing a tutoring course. Trying to replicate the instructions on my own I directed output of the ls listing command (lists all files of my home directory ) to My_dir.tsv file (see the screenshot) to make use of... (9 Replies)
Discussion started by: scrutinizerix
9 Replies

2. UNIX for Dummies Questions & Answers

Cut pid from ps using cut command

hay i am trying to get JUST the PID from the ps command. my command line is: ps -ef | grep "mintty" | cut -d' ' -f2 but i get an empty line. i assume that the delimiter is not just one space character, but can't figure out what should i do in order to do that. i know i can use awk or cut... (8 Replies)
Discussion started by: ran ber
8 Replies

3. Shell Programming and Scripting

Cut Command error cut: Bad range

Hi Can anyone what I am doing wrong while using cut command. for f in *.log do logfilename=$f Log "Log file Name: $logfilename" logfile1=`basename $logfilename .log` flength=${#logfile1} Log "file length $flength" from_length=$(($flength - 15)) Log "from... (2 Replies)
Discussion started by: dgmm
2 Replies

4. Shell Programming and Scripting

Help with cut command

Hello, I have a file packed with records similar to: -rw-rw---- 1 pcpdsrv8 suppw 98737 21 Jan 09:08 Workflow_Calc_Distance.log.20101223060615.bin Could someone tell me how I can cut out all the info up until the Date field please so it looks like: 21 Jan 09:08... (3 Replies)
Discussion started by: Grueben
3 Replies

5. Shell Programming and Scripting

cut command

while read EachRecord do echo "EachRecord = "$EachRecord $EachRecord | cut -f1 #cut -f2 ./input.txt done < input.txt fi * ************* hi guys how can i pass value to cut command from $EachRecord (18 Replies)
Discussion started by: kojo
18 Replies

6. Shell Programming and Scripting

Need help for Cut Command

Hi All, Greetings.. I am having a Line of 1600 characters in which each specifi fields have some values. For example 1-5 Firstname 6-8 Age and so on.. I am using `expr substr $line 100,7` to get values from the line and store in seperate variables.. The file contains 70000 lines. It is taking 3... (8 Replies)
Discussion started by: dinesh1985
8 Replies

7. UNIX for Dummies Questions & Answers

Cut Command help

Hi , I am new to Unix.I have a shell script whenere I wnat to find if a particular server is running and kill all the instances of it (running on different ports) script filename to start the srever is say abcd If i do ps -eaf | grep abc I get all the instances of srever running .In the... (1 Reply)
Discussion started by: shradham
1 Replies

8. UNIX for Dummies Questions & Answers

cut command

Hello, The below cut command will cut first 1 to 10 characters and also from 20th position to 25th position. cut -c1-10,20-25 tst.txt It works great. Is it possible to put some characters after each field. I want to have something like this 1234567890|ABCDEF I want to put some... (1 Reply)
Discussion started by: sanjay92
1 Replies

9. UNIX for Dummies Questions & Answers

Cut Command

I have a list of files in a directory that I want to check position 2-6 for a string of EPIP or EPCN. I ran the following command but it isn't working correctly: ls EPDa*.*.*.data |cut -c1-30 All it is doing is cutting the file name not what is in the file. Any help would be appreciated. (3 Replies)
Discussion started by: lesstjm
3 Replies
Login or Register to Ask a Question