10 More Discussions You Might Find Interesting
1. 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
2. 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
3. Shell Programming and Scripting
I am new here and this is my first post, hope someone can help me
I am writing a script that is supposed to go in 9 different directories and edit a given file in each of the directories. I am using sed to edit the file as
sed -i 'line# s/#to be changed/#to be replaced with/... (5 Replies)
Discussion started by: Madiouma Ndiaye
4. Shell Programming and Scripting
Is there an easy way of checking for the existence of a file that ends with the extension .order and if it exists do something? if not do nothing (7 Replies)
Discussion started by: firefox2k2
5. Shell Programming and Scripting
I tried to go through a lot of online material but could not find concrete solution.
My issues is like this :
I've got a input file like this :
... (12 Replies)
Discussion started by: Shaishav Shah
6. Shell Programming and Scripting
I have following requirement.
Say, my text file contains following patterns
}}@0|@315000|78500|335000|99000|114000|87000|17|And the Sort|Ab... (8 Replies)
Discussion started by: Shell_Learner
7. Shell Programming and Scripting
I have a korn shell code here on a while do statement which replace the string stored on an array removing double quotes characters on it but it doesn't work.
example record: appointmentDate = "tree" which value should result to tree
# Remove " on string records
let recordCount=3... (5 Replies)
Discussion started by: ryukishin_17
8. Shell Programming and Scripting
Hello and thx for reading this
I'm using sed to remove only the leading spaces in a file
bash-280R# cat foofile
bash-280R# sed 's/^ *//' foofile > foofile.use
bash-280R# cat foofile.use
some text... (6 Replies)
Discussion started by: laser
9. Shell Programming and Scripting
I am just wondering if it's possible to refer to variables within a sed statement as follows:-
cat $file | sed -e 1's/$oldtext/$newtext/' > $file
as when I run the script, the variables are not recognised and nothing happens..??
Thanks (5 Replies)
Discussion started by: sirtrancealot
10. Shell Programming and Scripting
this is my output for my crawler.
/maphp?hl=en&tab=wl&ie=UTF-8... (3 Replies)
Discussion started by: chris1234