10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello scripting geniusii! I come to kneel before the alter of your wisdom!
I am looking to take a keyword and replace characters within that keyword and add them to a string variable. I would like this to only go through however many characters the word has, which may vary in size.
... (10 Replies)
Discussion started by: ghaniba
2. Web Development
Got few suggestions.
- How about minifying resources
- Service workers setup
https://www.unix.com/attachments/web-programming/7709d1550557731-sneak-preview-new-unix-com-usercp-vuejs-demo-screenshot-png (8 Replies)
Discussion started by: Akshay Hegde
3. Shell Programming and Scripting
I have a moderate size (300 lines) BASH Shell script that performs various tasks on different source reports (CSV files). One of the tasks that it performs, is to use SED to replace 'non-conforming' titles with conformant ones. For example "How to format a RAW Report" needs to become... (3 Replies)
Discussion started by: richardsantink
4. Shell Programming and Scripting
could you please help me to remove \n characters after all other replacements have been done as in the code below:
#remove punctuation and starting whitespaces
#print lines containing 'whatever'
#print... (3 Replies)
Discussion started by: shivacoder
5. UNIX for Dummies Questions & Answers
Hello all. I am a beginner UNIX user who is using UNIX to work on a bioinformatics project for my university.
I have a bit of a complicated issue in trying to use sed (or awk) to "find and replace" bases (letters) in a genetics data spreadsheet (converted to a text file, can be either... (3 Replies)
Discussion started by: Mince
6. Shell Programming and Scripting
How can i get count of replacements done by sed in a file.
I know grep -c is a method.
But say if sed had made 10 replacement in a file, can i get number 10 some how? (8 Replies)
Discussion started by: abhitanshu
7. UNIX for Dummies Questions & Answers
I have a text file where I want to use sed to do multiple replacements all at once (i.e. with a single command) . I want to convert all AA's to 0, all AG's to 1 and all GG's to 2. How do I go about doing that? Thanks! (2 Replies)
Discussion started by: evelibertine
8. Shell Programming and Scripting
I need to first generate some random characters, which I am already doing perfectly as follows:
randomize=`cat /dev/urandom | tr -dc "a-z0-9" | fold -w 6 | head -n 1`
This is where I am stuck...I need to sed replace some static values with those random characters, but I need each... (4 Replies)
Discussion started by: holyearth
9. Shell Programming and Scripting
I have a requirement as below
Jacuzzi,"Jet Rings, Pillows",Accessory,Optional,,9230917,69094,,P556805,69094,FALSE,1,0,,
Jacuzzi,"Jet Rings, Pillows, Skirt/Apron",Accessory,Optional,,9230917,69094,,P556805,69094,FALSE,1,0,,
Jacuzzi,"Jet Rings!@%... (6 Replies)
Discussion started by: kewk
10. UNIX for Dummies Questions & Answers
I need to find the number of occurrence of string in a file,
>output would be
def 1 (10 Replies)
Discussion started by: matrixmadhan