9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I need to add few new columns in existing file .Any help would be great
ex:
existing file
name,typ,add,dept
New file(com1,sal are new)
name,com1,type,sal,add,dept
Thanks,
mohan (1 Reply)
Discussion started by: mohan705
1 Replies
2. UNIX for Dummies Questions & Answers
How to separate First,Middle and Last Name from Full Name?
For Example:
I/O :- 1) Ashok Kumar
Requied Output:
First Name:Ashok
Middle Name:
Last Name:Kumar
I/O :- 2) Ashok K Kumar
Requied Output:
First Name:Ashok
Middle Name:K
Last Name:Kumar
I/O :- 3) Ashok K R Kumar
Requied Output:... (1 Reply)
Discussion started by: AhmedLakadkutta
1 Replies
3. Shell Programming and Scripting
Hi,
Below is my issue which I desperately need and I want a shell script which can do this job.
1. There are 10 log files in a particular location.
2. open each log file. Goto to the end of the file. From the end go up to find a particular text. From this particular text till the end of... (3 Replies)
Discussion started by: kashriram
3 Replies
4. UNIX for Dummies Questions & Answers
How would I print the word "and" between the words "FOO" and BAR" using sed? My file has three words in it FOO and BAR. I only want the word "and".
Thanks every one. (7 Replies)
Discussion started by: tigta09
7 Replies
5. Shell Programming and Scripting
I have a file where in I need to add gctunit1/gtdivcompebb1/ after the = sign
for example:
gtfix31/gctunit_gtdivcompebb1/csclkswcompbypassstepgnnnh = gctunit1/gtdivcompebb1/csclkswcompbypassstepgnnnh (3 Replies)
Discussion started by: pitagi
3 Replies
6. Shell Programming and Scripting
Can anyone help me pls? I want to add a text into the middle of file.
I've writtenthe following script
text to add="$1"
file="$2"
lines=$(wc -l $2)
half_lines=$(expr $lines / 2)
head -$half_lines $2 > temp
echo "text to add" >> temp
((half_lines=$half_lines + 1))
tail -$half_lines $2... (6 Replies)
Discussion started by: relle
6 Replies
7. Shell Programming and Scripting
Hi There.
I have a file like this .
a nnnn sds
b ssss fdefd
c sdfd dsfd sdfds
...
...
Summary
t1 t2 t3 t4
s1 s2 s3 s4
f1 f2 f3 f4
..
How to use awk to begin process this file from the line that contains "Summary"?
Thanks!
louis (12 Replies)
Discussion started by: javacore
12 Replies
8. Shell Programming and Scripting
Hi,
If I have 90 lines and I want to print the 45th line, is there a quick sed command for this?
thx. (7 Replies)
Discussion started by: g_jumpin
7 Replies
9. UNIX for Dummies Questions & Answers
Hi everyone
really need some help with this one.
Ive to write a script where the middle date has to be checked and made sure that it is the current date.
281220032812200328122003
This is the format ive to check the date in the middle is the current date.
Can anyone help me with this... (14 Replies)
Discussion started by: vcardo10
14 Replies