Search Results

Search: Posts Made By: Madiouma Ndiaye
2,179
Posted By Madiouma Ndiaye
Thanks alot, worked the way I wanted it to ...
Thanks alot, worked the way I wanted it to

---------- Post updated at 12:34 PM ---------- Previous update was at 12:33 PM ----------



Thanks, works perfect
2,179
Posted By Madiouma Ndiaye
Using awk to multiple and replace in a specific line
Hi Folks,

I have the file in which I need to multiply the content of a line and replace the initial content of that line with the obtained answer.
For example if this is my input file file1.txt...
1,135
Posted By Madiouma Ndiaye
Thank you all for the replies I ended up...
Thank you all for the replies

I ended up writing a small fortran code to do the insertion I was looking for by using

m = 90000
n = 288
do i = 1, m
do j = 1, n
read() original file...
1,135
Posted By Madiouma Ndiaye
Insert line
Hello

Is there any sed command to insert a line after nth line... have a file of 500000 lines

Thanks
1,887
Posted By Madiouma Ndiaye
Thank you for the insight it does help with what...
Thank you for the insight it does help with what I was looking for....
Is it possible to use the same logic in awk to insert after a given number of lines?
1,887
Posted By Madiouma Ndiaye
Not very familiar with head and tail. Do I have...
Not very familiar with head and tail. Do I have to set line 1 as head and line 288 as tail?
Thanks
1,887
Posted By Madiouma Ndiaye
Grep specific lines
Hello

I have a file with nearly 90000 lines in x,y,z format but have some lines that I do not need to show. Is there anyway to delete those 3 lines after every 288 lines.
Eg I keep the first 288...
1,475
Posted By Madiouma Ndiaye
Don Cragun Thats definitely what I was...
Don Cragun

Thats definitely what I was looking for... tried to make it work though but I always have to run the script myself instead of it running at the specified (45 mins) time
1,475
Posted By Madiouma Ndiaye
By if sss.temp != sss.temp.old I actually mean...
By
if sss.temp != sss.temp.old I actually mean
diff sss.temp sss.temp.old returns true. That is the contents of the two files are different.

Yes
cat sss.temp.dat.old sss.temp > sss.temp.dat...
1,475
Posted By Madiouma Ndiaye
I don't have a specific code but what I want...
I don't have a specific code but what I want should be like this: the file to be checked is sss.temp

if sss.temp != sss.temp.old then
cp sss.temp sss.temp.old
cp sss.temp.dat sss.temp.dat.old...
1,475
Posted By Madiouma Ndiaye
File Update
Hi

I have a running program with different output files updating for given loops but for one of the files I want to keep all data (ie not override it) but always concatenate the last data to the...
18,671
Posted By Madiouma Ndiaye
Scrutinizer You right or the closing quote, but...
Scrutinizer You right or the closing quote, but missed it when I was writing the post. The statement works now fine with if elif statement.
What do yu mean by using only one sed statement?

thanks
18,671
Posted By Madiouma Ndiaye
Thank you very much
Thank you very much
18,671
Posted By Madiouma Ndiaye
If else statement in sed
Hello Guys,
I am new here and this is my first post, hope someone can help me

I am writing a script that is supposed to go in 9 different directories and edit a given file in each of the...
Showing results 1 to 14 of 14

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