I have a file that contains hundreds of lines such as:
this_is_macro,000001
this_is_macro,000002
this_is_macro,000003
I would like to add the variable words
MACROBEGIN MACRO_000001
MACROBEGIN MACRO_000002
MACROBEGIN MACRO_000003
above each line
and add the word
MACROEND
... (2 Replies)
All,
I am trying to figure out a script to run in windows that will allow me to match on First column in file1 to 8th Column in File2 then
Insert file1 column2 to file2 column4 then create a new file.
File1:
12345 Sam
12346 Bob
12347 Bill
File2:... (1 Reply)
Hi,
I am using Solaris 10 OS and trying to create shell script that can add input at certain location into a file.
The input that I am trying to put is new domain name
e.g
@newdomain.com
the file contains,
more test01.out
user/zzzz786@st.com/INBOX
user/zzzz@po.com/INBOX... (8 Replies)
Hello,
I'm trying to figure out how best to approach this script, and I have very little experience, so I could use all the help I can get. :wall:
I regularly need to delete files from many directories.
A file with the same name may exist any number of times in different subdirectories.... (3 Replies)
Hello Sir/Madam,
I'm new to UNIX and wondering if I can process a find & add using AWK command in UNIX?
requirements: I have to find *.JPG field for each line in the input file and add it as a separate field for each line.. for ex:
0000684631,E,3088017,7... (10 Replies)
Hello and good day
I am not familiar with programming. I have text files and I would like to:
1) edit script to input "a" and "b" parameters by users
2)put input directories in loop :
Something like this:
Ex: For i in /usr/desktop/input/SG*
3)add 2 more columns and performing... (2 Replies)
In the attached bash file I am trying to add a block of code to add2text that will copy the input from match to a text file (file.txt).
For example, if from the menu choice 1 is select the user is asked for the id.... lets say that is 12345, after that id is matched and converted can it be added... (22 Replies)
Hi dears
i use bash shell
i have INPUT.txt
like this
number of columns different in one
some row have 12 , some 11 columns
see last column
INPUT.txt
CodeGender Age Grade Dialect Session Sentence Start End Length Phonemic Phonetic
63 M 27 BS/BA TEHRANI 3 4 298320 310050... (2 Replies)
In the awk below I am trying to add a | that will adjust $2 in the ouput by adding +1 if the original value from file that was used in $3 had a - in it. Line 3 of file is an example of this. In my current awk I just subtract one but I am not sure how to only apply this to those values without a -.... (5 Replies)