9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to check for missing dates in a file and would want to insert the missing date into the file.
Currently the script is as below
#!/bin/ksh
dates="dates"
cat ${dates} | grep -v "^#"
curr_month=`date '+%m`
curr_day=`date '+%d`
curr_year=`date '+%Y`
#curr_month=02... (7 Replies)
Discussion started by: newbie_01
7 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I need to insert "Hello World" text into a file called hai.txt using shell scripting. Kindly help me.
For eg: If I open the file hai.txt by giving linux command cat hai.txt, the content of the file should have the text Hello World in it.
Thanks (5 Replies)
Discussion started by: karthick nath
5 Replies
3. Shell Programming and Scripting
Hello,
I'm doing an Shell Script to insert a text on XML file, i tried sed, awk, perl... i'm doing something wrong, please help me :)
well, the script is a bit large, i get some infos on script before 'run' this part to insert the text on XML...
domobile() {
let i++
echo
... (1 Reply)
Discussion started by: tassomanoel
1 Replies
4. Programming
Hi all,
I need to parse through a text file searching for a specific string, then after I find this string read in remaining data off the line to a variable.
I've tried various things and can't seem to get any to work.
Any help would be much appreciated. (2 Replies)
Discussion started by: caboose57
2 Replies
5. Shell Programming and Scripting
Hello Team,
I need help in preparing script which will insert text from one file to other file.
I have requirement to prepare script which will insert data from one file to another file.
I have tried using sed and awk command but it is not useful to me as it does not append data in the... (12 Replies)
Discussion started by: coolguyamy
12 Replies
6. Shell Programming and Scripting
Hi All,
Can someone pls help me to insert some text on a file.
my file contains something like below..
AKBULBU,
BALUMIL,
BATCH,BATCH
BOARROB,
BOTAKAT,
C57896,
CAKIOZE,
CHECMER,
CICOFRA,
CISZPAW,2194485
I want output as
USER_ID, LOGIN_ID (6 Replies)
Discussion started by: harshakusam
6 Replies
7. Shell Programming and Scripting
I'm in a time crunch here and I don't know how to write scripts.
I have a file of data that looks like the following:
1 7.652073E+00 0.000000E+00 7.146691E+02 1.704154E+01
2 7.652068E+00 6.031387E+00 7.146636E+02 2.499305E+01
3 7.645906E+00 1.509455E+01 7.144158E+02 1.822061E+02
4... (7 Replies)
Discussion started by: pk218703
7 Replies
8. Shell Programming and Scripting
Hi all,
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
sed '$a\
hi...
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
Discussion started by: iamgeethuj
4 Replies
9. Shell Programming and Scripting
Dear Folks :),
I am new to UNIX scripting and I do not know how can I insert some text in the first column of a UNIX text file at command promtp.
I can do this in vi editor by using this command :g/^/s//BBB_
e,g I have a file named as Test.dat and it containins below text:
michal... (4 Replies)
Discussion started by: Muhammad Afzal
4 Replies