10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a string of pre defined ip address list which will always remain constant their order will never change like in below sample:
iplist=8.8.5.19,9.7.5.14,12.9.9.23,8.8.8.14,144.1.113
In the above example i m considering only 5 ips but there could be many more.
Now i have a file which... (15 Replies)
Discussion started by: mohtashims
15 Replies
2. Shell Programming and Scripting
Gents,
file1
S 65733.00 19793.00 1 0 318592.8 2792489.5 29.1063000008
S 65733.00 19801.00 1 0 323120.8 2789153.6 13.3063000044
S 66009.00 19713.00 1 0 318672.7 2792538.2 30.6063000120
S 65801.00 19799.00 1 ... (2 Replies)
Discussion started by: jiam912
2 Replies
3. Shell Programming and Scripting
Hi,
I have a file(input.txt) and trying to format as output.txt. See the attached file format.
Note: This is a windows file (DOS format) and the commands are also going to execute on windows.
Basically I am trying to capture all the data in between Local Group Memberships and Global Group... (10 Replies)
Discussion started by: Monoj2014
10 Replies
4. Shell Programming and Scripting
Hi,
So I'm kinda new to shell scripts and the like. I've picked up quite a bit of use from browsing the forums here but ran into a new one that I can't seem to find an answer for.
I'm looking to parse/find a string AND the next 15 or so charachters that follow the string within a text file... (1 Reply)
Discussion started by: kar23me
1 Replies
5. Shell Programming and Scripting
Hi,
I'm new to shell scripting and require your help in achieving the requirement.
I have a data file which stores organization name as one of the column data in a csv data file.
Organization name stored in data file is: Canadian OU CAD
Sample Data file:
1,5,4,5,,
... (9 Replies)
Discussion started by: andy4013
9 Replies
6. Shell Programming and Scripting
Please look into the example.
My source file is like,
00,57,3,2008-07-24 06:30:06
10,1,8025171,"1M00",17907023,2008-07-23 18:16:58
10,2,8025171,"1M00",17907023,2008-07-23 18:17:01
99,184
What should i do if i want output like...
hello,00,57,3,2008-07-24 06:30:06... (7 Replies)
Discussion started by: pkumar3
7 Replies
7. UNIX for Dummies Questions & Answers
Hello everyone !
I need to get the data in a file into a string.
file1
1
2
3
4
5
I need to write a script where the file1 info is stored in a string (say variable s). So the output should be
1,2,3,4,5 or (1,2,3,4,5)
If i say
echo $s or print $s
output should be
1,2,3,4,5
or
... (7 Replies)
Discussion started by: i.scientist
7 Replies
8. UNIX for Dummies Questions & Answers
I have a .dat file in unix and it keeps failing file validation on line x. How do I delete a data string from a .dat file in UNIX?
I tried the following:
sed -e 'data string' -e file name
and it telling me unrecognized command (4 Replies)
Discussion started by: supergirl3954
4 Replies
9. Programming
Hi,
I am trying to read a FILE data type into a String data type, I tried to make the FILE* veriable just equal the String veriable but i get:
Conversion from 'FILE*' to 'String' is ambiguous
Has anyone got any idea?
Thanks (4 Replies)
Discussion started by: cb.mark
4 Replies
10. Shell Programming and Scripting
I just need to add a static ID to each output record so the users will be able to tell which group records in combined flatfiles come from I have the static ID in a bourne variable. I tried
awk '{print "${GroupID}" $0}' infile > outfile
But I ended up with the string ${GroupID} instead of... (5 Replies)
Discussion started by: gillbates
5 Replies