10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to extract all entries containing the following patterns: ccccta & ccccccccc from the following infile:
>P39PT-1224_Freq_900
cccctacgacggcattggtaatggctcccgcaagccatctctcttcagccaagg
>P39PT-784_Freq_2
cccctacgacggcattggtaatggcacccgcaagccatctctcttccccccccc
>P39PT-678_Freq_5... (4 Replies)
Discussion started by: Xterra
4 Replies
2. Shell Programming and Scripting
Hi i have a file in which i am doing some processing.
The code is as follows:
#!/bin/ksh
grep DATA File1.txt >> File2.txt
sed 's/DATA//' File2.txt | tr -d ‘ ‘ >> File4.xls
As you can see my output is going in a xl file.The output consist of four columns/feilds out of which the first... (20 Replies)
Discussion started by: Sharma331
20 Replies
3. Shell Programming and Scripting
I'm trying to write a script that will do an ls of a location, echo it into a file, and then read that file and selectively delete files/folders, so it would go something like this:
cd $CLEAN_LOCN
ls >>$TMP_FILE
while read LINE
do
if LINE = $DONTDELETE
skip
elseif LINE =... (2 Replies)
Discussion started by: MaureenT
2 Replies
4. Shell Programming and Scripting
I have a file that is HTML encoded. Each line has something like this on each line..
<href=http://link.com/username.aspx>username </a> more info.. <a href=http://link.com/info1.aspx>info1</a> more code... <a href=http://link.com/info2.aspx>info2</a>
I have one goal really.. to clean up the... (2 Replies)
Discussion started by: dragin33
2 Replies
5. Shell Programming and Scripting
Hi,
I need to split the file lines in below format as.
Input file : Sample.txt
<Rule expression="DeliverToCompID IS NULL" invert="true">
<Rule field="PossDupFlag" value="Y" >
<Rule expression="OrdStatus = '2' AND OrigClOrdID IS NULL">
Output... (5 Replies)
Discussion started by: manosubsulo
5 Replies
6. UNIX for Dummies Questions & Answers
Dear Members,
Problem is suppose i have 50 lines in a file, 40 lines last character is "\" and the remaining 10 lines are good(i mean these 10 lines do not have "\" character)
How can i remove this character from the file.
Thanks (1 Reply)
Discussion started by: sandeep_1105
1 Replies
7. Shell Programming and Scripting
In POSIX shell, we don't have arrays, but we can iterate over a list like this:
#!/bin/sh
list="Fred Barney Wilma Betty"
for i in $list; do echo $i; done
Fred
Barney
Wilma
Betty
But let's say we want "Mr. Slate" in the list.
We know we can't just stick him in there like this:... (5 Replies)
Discussion started by: mjd_tech
5 Replies
8. UNIX for Advanced & Expert Users
Dear users,
I am new to AWK and have been battling with this one for close to a week now. Some of you did offer some help last week but I think I may not have explained myself very well. So I am trying again.
I have a dataset that has the following format where the datasets repeat every... (5 Replies)
Discussion started by: sda_rr
5 Replies
9. UNIX for Dummies Questions & Answers
hi
is it possible to split the shell window in two or more parts like split command vi?
i am using putty as telnet client. (2 Replies)
Discussion started by: ilayans
2 Replies
10. Shell Programming and Scripting
hye everybody :) ,
i'm new to the scripting world.. hope you guys can help me out with this one..
i'm trying to identify any directory under /tmp/saya that is created more than one day from the current date..
e.g, today is March 14, so any directory that has time stamp March 13 backwards, i... (2 Replies)
Discussion started by: fara_aris
2 Replies