LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   shell script for changig txt-file content (https://www.linuxquestions.org/questions/programming-9/shell-script-for-changig-txt-file-content-489786/)

Flobsi 10-05-2006 04:59 PM

shell script for changig txt-file content
 
I am new to Linux and try to figure out the best way to change the content of a txt file writing a shell script.
the txt file consists of one row with different numbers.
I want each of that numbers multiplied by 2.1455e-07.
Tried
ls *.2.txt | gawk'{print$1*2.1455E-07}'>v.sh

then added the header in the output v.sh file with:
#!/bin/sh

and run the v.sh , but didnt work.

unSpawn 10-05-2006 05:46 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread should be closed because it is a duplicate of http://www.linuxquestions.org/questi...d.php?t=489784.


All times are GMT -5. The time now is 05:59 AM.