Search Results

Search: Posts Made By: guest6
2,640
Posted By guest6
Done
Done.. missed a space
2,640
Posted By guest6
Help in while and sed command
Hi,

Following is my code :

i=3
j=3
while [ $i -le $count1 ]
do
i=`expr $i + 3`
head -n 60 file1.imp >> s27.txt
while [ $j -le 60 ]
do
head -n 3 file2.imp >> s27.imp
...
50,550
Posted By guest6
I tried using the command 'tac' . i get an error...
I tried using the command 'tac' . i get an error command not 'found'.. how do delete the last three lines from the file..please help
2,413
Posted By guest6
yeah...my mistake..it worked... i have one...
yeah...my mistake..it worked... i have one question... u suggested to use read.. can u please tell me how to use "read" command.

Is it hard to delete the last 3 three lines in file1.txt using...
2,413
Posted By guest6
I rechecked my code. I added the line you...
I rechecked my code. I added the line you suggested. I am getting the output

Here we are just before the while -- count is 9 and i is 0
2,413
Posted By guest6
How do i get rid of the error in the while loop
How do i get rid of the error in the while loop
2,413
Posted By guest6
Thanks .. i removed spaces and now that error is...
Thanks .. i removed spaces and now that error is gone..:)

I am getting an error in while loop. The error is

"[: too many arguments"

I am using the while loop because i wish to read first 3...
2,413
Posted By guest6
Help in unix
Hi,

I am a beginner in unix shell scripting. I wish to do the following things:

a) Read 3 new lines from a file (file2.txt) and appending them at the end of another file file1.txt.

I wrote...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 07:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy