8 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
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
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
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
Hi,
I have a script that use some files and generate one file using these files. The main command that i am using in the script is the command cut, but it is very low, and i would like another command to generate my file faster...
My need is be able to use another command similar than "cut"... (2 Replies)
Discussion started by: the_pas
2 Replies
5. Shell Programming and Scripting
Hey Guys,
I'm trying to use the cut command to do the following:
"AuctionID","UserID","BidderRating","Bid","BidDateTime"
1070387924,"rmichaelll",46,407.00,2/12/2002 14:07:44
1070387924,"decocloxcolektor",155,402.00,2/12/2002 14:07:28
1070387924,"markartz",6,350.00,2/12/2002 11:11:52... (2 Replies)
Discussion started by: Gboy
2 Replies
6. Shell Programming and Scripting
Hi,
I want to cut from a particular position to a particular position and retain the rest.
I tried this
cut -c31-51 file1.txt > file2.txt
But The characters from the position 31 to 51 were only present in file2.txt.
Is there a way to reverse this i.e to retain the rest except from... (1 Reply)
Discussion started by: ragavhere
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have an entry in a file like below
2005-08-12 13:20:33::404811210033185::919433019670::BSNL KOLKATA::India::IN::NAT::PP::POSTPAID::919869599997
i want the output like
404811210033185,BSNL KOLKATA
so what command i have to try, because , i tried for cut -d"::" f3,5
it said ... (9 Replies)
Discussion started by: vasikaran
9 Replies
8. UNIX for Dummies Questions & Answers
hi all. thanks for looking
i am doing some homework.
one question is that when type
wc
and then how to tell the program that we have finished entering data?
also
why do some operating systems report 22 as the number of bytes in the file above, while others only 20?
thanks so much,... (1 Reply)
Discussion started by: dashi2k
1 Replies