10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Everyone,
I have a very simple problem and i am stuck in that from last 8 days. I tried many attempts, googled my query but all in vain.
I have a text file named "test.txt"
In that suppose i have contents like:
Java:
1 Object oriented programming language
2 Concepts of Abstraction... (5 Replies)
Discussion started by: Abhijeet Anand
5 Replies
2. Shell Programming and Scripting
I have a txt file of the following format
>ab_
qwerty
>rt_
hfjkil
>Ty2
hglashglkasghkf;
>P2
aklhfklflkkgfgkfl
>ui_
vnllkdskkkffkfkkf
>we32
vksksjksj;lslsf'sk's's
....
.....
I want to split this big file based on the header (>) (5 Replies)
Discussion started by: Lucky Ali
5 Replies
3. Shell Programming and Scripting
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Discussion started by: Wynner
3 Replies
4. Shell Programming and Scripting
The script is following :
for each_rec in <file_name>
do
count=`cut -c -2 ${each_rec} | grep "45"`
echo ${count}
if ] then
amount=`cut -c 24-35 ${each_rec}`
echo ${amount}
else
echo "failed"
fi
done
And the file looks like below :
... (4 Replies)
Discussion started by: mady135
4 Replies
5. UNIX for Dummies Questions & Answers
I have attached a txt file, what I would like to be able to do is:
1. Extract Data from Columns labeled E/N and Ko into a new file
2. Then in the new file I would like to be able to plot E/N on the X axis and Ko on the y axis.
3. Lastly I would like to be able to extract multiple data sets and... (6 Replies)
Discussion started by: gingburg
6 Replies
6. UNIX for Dummies Questions & Answers
Given the following text in a file named extract.txt:
listenPort:=25
smtpDestination:=2
enableSSL:=
I am trying to extract only the value 2 following smtpDestination:=
Someone had suggested I use:
sed -e "s/^smtpDestination:=\(.*\)$/\1/" extract.txt
but this returns:
listenPort:=25
2
... (2 Replies)
Discussion started by: cleanden
2 Replies
7. UNIX for Dummies Questions & Answers
HIya,
Having a dumb day whilst writing an archive process in Shell want to extract from the filename the date and archive into tar files based on this, I don't want to use mtime as it may not be the actual file date.
The files are
-rw-rw---- 1 user admin 100 Aug 29 11:10... (2 Replies)
Discussion started by: badg3r
2 Replies
8. Shell Programming and Scripting
Hi there,
I would like to have some assistance with 2 problems I have.
Well, let's call it 2 challenges.
The language to use is Perl.
First is a foreach loop (or any other suggestion).
I want to have a list of IP addresses and exit when an extracted IP address is not in that list.
It is... (6 Replies)
Discussion started by: ejdv
6 Replies
9. Shell Programming and Scripting
Hi,
Currently I have two files; A and B.
File A has below data:-
-3 + <1 2 3 4 5 6 7 8 1 2 > - 1]
-2 + <8 8 3 4 0 3 7 9 1 3 > - 1]
-1 + <3 7 3 4 8 2 7 2 1 2 > - 1]
-3 + <2 2 3 4 3 1 7 8 8 2 > - 1]
and File B has below data:-
<9 1 1 4 2 6 3 8 8 9 >
From these two files, I... (2 Replies)
Discussion started by: ahjiefreak
2 Replies
10. Shell Programming and Scripting
Hi All,
I am having trouble through, I am reading the input from tab delimited file containing several records,
e.g.
line1 field1 field2 field3 so on..
line2 field1 field2 field3 so on..
..
..
on the basis of certain fields for each record in input file, I have to retrieve... (1 Reply)
Discussion started by: Sonu4lov
1 Replies