10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi there,
first of all this is not homework...this is a new type of exercise for practicing vocabulary with my students.
I have a file consisting of two columns, separated by a tab, each line consisting of a word and its definition, separated by a line break.
What i need is to replace a... (15 Replies)
Discussion started by: eldeingles
15 Replies
2. UNIX for Dummies Questions & Answers
I was wondering how I could cut only the names of items from the following list:
spoons50
cups29
forks50
plates29
I used "man cut" and thought -c would help, but the items have different character lengths. Please note that there is no space between the item and number (so I can't use... (10 Replies)
Discussion started by: PTcharger
10 Replies
3. Shell Programming and Scripting
Hi,
Is there a tool somewhat parallel to rev, but which randomizes instead of reverses?
I've tried rl, but I can only get it to randomize words.
I was hoping for something like this
echo "hello" | ran
leolh
less simpler solutions are also welcome.
Sorry if the question is... (21 Replies)
Discussion started by: jeppe83
21 Replies
4. Shell Programming and Scripting
So I have this input
1 10327 rs112750067 T C . PASS DP=65;AF=0.208;CB=BC,NCBI
1 10469 rs117577454 C G . PASS DP=2055;AF=0.020;CB=UM,BC,NCBI
1 10492 rs55998931 C T . PASS DP=231;AF=0.167;CB=BC,NCBI
1 10583 rs58108140 G A ... (3 Replies)
Discussion started by: kellywilliams
3 Replies
5. UNIX for Advanced & Expert Users
Hi,
Could any one of you let me know any simple Unix command for deleting first 10 letters of first line in unix?
Eg: 123456789ABC --Input
ABC--Output
Thanks
Sue (9 Replies)
Discussion started by: pyaranoid
9 Replies
6. Shell Programming and Scripting
Hey guys..
Can experts help me in achieving my purpose..
I have a file which contains email address of some 100 to 1000 domains, I need only the domain names..
Eg: abc@yahoo.com
hd@gamil.com
ed@hotmail.com
The output should contain only
Yahoo.com
... (5 Replies)
Discussion started by: achararun
5 Replies
7. Shell Programming and Scripting
Hello,
I have a list of words.. ranging from 4 to any characters long.. to not more than 20 though.
How can I select only first seven letters of the list of words?
example:-
wwwwwwwwww
eeeee
wererreetf
sdsarddrereewtewt
sdsdsds
sdsd
ereetetttt
ewtwertwrttrttrtrtwtrww
I... (10 Replies)
Discussion started by: fed.linuxgossip
10 Replies
8. Shell Programming and Scripting
Hi,
In an If condition, how can I specify if the variable are less than 5 letters, echo “error”.
Something like this one:
echo –n “Your name please: “
read name
if ; then
Echo “Your name must be at least 5 letters length”
exit
fi
Thanks a lot… (6 Replies)
Discussion started by: TARFU
6 Replies
9. Shell Programming and Scripting
Hi, I've written a shell function in bash that reads letters into an array, then outputs them in one column with:
for n in "${array}"; do
echo $n
done
I was wondering if anyone knew how i would transpose the letters that are output by the for loop. Right now my output is:
aabbcc... (4 Replies)
Discussion started by: myscsa2004
4 Replies
10. UNIX for Dummies Questions & Answers
I have an odd issue.
I am trying to copy some files/folders to my linux box via a burned CD which I created on my mac. When I browse the files on the mac (or my windows box), everything looks fine (some of the folder names start with a capital letter, which is needed for everything to work... (8 Replies)
Discussion started by: blogg
8 Replies