10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have multiple occurrences of the pattern:
where is any digit, in various text context but the pattern is unique as this regex. And I need to turn this decimal fraction into an integer (corresponding percent value: the range of 0-100).
What I'm doing is:
cat... (1 Reply)
Discussion started by: roussine
2. Shell Programming and Scripting
| Jan 8 2018 11:28PM| 24 | 75 | 51 | 1 | 1.600|
| Jan 8 2018 12:01PM| 52 | 823 | 21 | 6 | 2.675|
Jan-8-2018-11:28PM 24 75 51 1 1.600
Jan-8-2018-12:01PM 52 823 21 6 2.675
I have input file , as shown above and... (10 Replies)
Discussion started by: sagar_1986
3. Shell Programming and Scripting
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
4. Shell Programming and Scripting
I have the following data.
id1 xxx xxx xxx id1 xxxx xxx xxx
id2 xxx xxx xxx id2 xxxx xxx xxx id2
In my awk script which reads the file containing the above data I have the following code:
myline=<inputdata> which is shown above
What I am trying to find out is how may... (5 Replies)
Discussion started by: wincrazy
5. Shell Programming and Scripting
I am trying to load data from a csv file into a DB during our DB migration phase. I am successfully able export all data into a .csv file but those have to rewritten in terms insert statement which will allow for further population of same data in different DB
My exiting csv record... (6 Replies)
Discussion started by: bhaskar_m
6. Shell Programming and Scripting
got a file as y.txt
i want to search in the above file the key word like abc
looking for two outcomes by passing the parameter value as abc into function and the two outocmes are... (6 Replies)
Discussion started by: silgun
7. Shell Programming and Scripting
I need your help in finding pattern from files present in different directories.
I need to search for a pattern "xyz" from "*.txt" files which are present in different levels of directories as shown.
dir2/subdir2/subsubdir2/file.txt... (5 Replies)
Discussion started by: imas
8. Shell Programming and Scripting
I'm searching the most effective way of doing the following task, so if someone can either provide a working solution with sed or one totally different but more effective then what I've got so far then please go ahead!
The debugme directory has 3 subdirectorys and each of them has one .txt file... (7 Replies)
Discussion started by: TehOne
9. Shell Programming and Scripting
I have a test script for using goto statement but its not working. please help
i tried both in linux and hp-ux it's not working please help
t=`ps -ef|grep ti.sh|grep -v grep`
if ; then
echo "stop" (5 Replies)
Discussion started by: Krrishv
10. Shell Programming and Scripting
Hey Guys.. I just want to know how to use Goto statement in shell scripts.
I know the basic use of statement.
The above statement will search for some label which must be defined in the script itself as:
I tried these combinations but I didn't work out for me and I'm... (7 Replies)
Discussion started by: vikasduhan