Search Results

Search: Posts Made By: scriptus
2,312
Posted By scriptus
Thanks again .. I'll mark this as solved.
Thanks again ..

I'll mark this as solved.
2,312
Posted By scriptus
Final question in this thread ... $ sed...
Final question in this thread ...

$ sed '/import/ s/,/\nimport/g' file$ awk -F"," '/^import/{print $1;for (i=2;i<=NF;i++) print "import"$i;next}1' input.py$ awk '!/import/{$0 = "import"$0}1'...
2,312
Posted By scriptus
@Akshay Thanks. I'm now beginning to...
@Akshay

Thanks. I'm now beginning to understand the different features of sed vs awk.

From an article I have just read (as a new member I can't post the link yet) ..
...
2,312
Posted By scriptus
@bartus11 Thanks for the suggestion but I...
@bartus11

Thanks for the suggestion but I prefer to stay with sed .. at least for now since I'm calling embedded sed from python subprocess. But I will try it out later.

@RudiC

That...
2,312
Posted By scriptus
Parse "import a, b, c, d" into line-by-line expressions "import a\nimport b\nimport c\nimport d\n"
First post. I'm just getting to grips with sed.
I've learned the basic substitution commands.
But I'm a bit stuck on this problem.

I'm running through some python files to convert syntax from...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 11:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy