10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to achieve something similar to what described in another post:
The difference is I want to add the line if the pattern is not found.
A123, valueA, valueB
B234, valueA, valueB
C345, valueA, valueB
D456, valueA, valueB
E567, valueA, valueB
F678, valueA, valueB
... (11 Replies)
Discussion started by: jyu3
2. Shell Programming and Scripting
I have file A.txt
File A Data
I want create text file of all data above and write some data on each file.
want Output on below folder
Welocme (3 Replies)
Discussion started by: asavaliya
3. Shell Programming and Scripting
I have problem with writing/adjusting a shell script.
I searched forum and unfortunately couldn't write scipt based on the information I found.
I never wtire such so it's hard for me and I do need to modify one script immediately.
case looks like:
1. 'file' that needs to be modified... (3 Replies)
Discussion started by: bipbip
4. Shell Programming and Scripting
I cannot seem to get this to work..
I have a file which has about 100 lines, and there is no end of line (line break \n) at the end of each line, and this is causing problem when i paste them into an application.
the file looks like this
this is a test
that is a test
balblblablblhblbha... (1 Reply)
Discussion started by: fedora
5. Shell Programming and Scripting
I have a file, let's call it "info.tmp" that contains data like this ..
I need to read "info.tmp" and for each line add strings in a way that the final output is
put /logs/ua/dummy.trigger 'AAA00001.FTP.XXX.BLA03A01.xxxxxx(+1)'
where XXX... (5 Replies)
Discussion started by: Andy_ARG
How would I do that?
/Rutger (6 Replies)
Discussion started by: rutgerblom
7. Shell Programming and Scripting
Trying to do like this :
echo "$variable1\n $(cat file.txt)"
but it only adds one time. When I run this cmd again with different variable it only replaces line of variable1.
How to add constantly line into first line in file ? (3 Replies)
Discussion started by: presul
8. Shell Programming and Scripting
How can i add new parameters into a line, and redirect the line to other file?
I want a, for example 2.sh with:
In the 2.sh, I added a new column:... (7 Replies)
Discussion started by: rafazz
9. Shell Programming and Scripting
I want to insert a new line character inside the file between these two record entries "san" and "man". How can this be done
echo " san " >"C:/\Test/\Output/\Neme"
echo " man " >>"C:/\Test/\Output/\Name"
Name file should look like this
Please help (4 Replies)
Discussion started by: sandeep_hi
10. Shell Programming and Scripting
I need to add a line to several files. But this line can only be added if it has an 'a' or 'A' in its current first line and only for the first line of each file.
I tried sed, but i cant figure how to make it change just the first line. It just changes me all lines with an a. Can you give... (2 Replies)
Discussion started by: Scarlos