10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I wrote a shell script program that supposed to delete any directories and its files that begin with the same character string . The program is designed to delete directories and its files that are one day old or less and only the directories that begin with the same character string. The problem... (1 Reply)
Discussion started by: dellanicholson
2. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
i have 2 files :
2)... (10 Replies)
Discussion started by: teokon90
3. Shell Programming and Scripting
Anyone can help using SED searches a character string for a specified delimiter character, and returns a leading or trailing space/blank.
Text file :
... (2 Replies)
Discussion started by: fspalero
4. Shell Programming and Scripting
A total sed noob here. Is there a way using sed to delete everything before a character AND after another character on each line in a file? The deletion should also delete the indicating characters(here: an opening and a closing parenthesis).
The original file would look like... (3 Replies)
Discussion started by: bnbsd
5. Shell Programming and Scripting
1_strings file contains
$ cat 1_strings
/home/Review$ cat myxml
<projected value="some string" path="/home/$USER/Src">
<few more lines >
<projected value="some string" path="/home/$USER/check">... (4 Replies)
Discussion started by: greet_sed
6. Shell Programming and Scripting
# delete the first character from the string
BACKUP_DIR=$(echo $BACKUP_DIR | cut -c 2-)
It works. It does want I want, delete the first character from string in the... (11 Replies)
Discussion started by: linuxinho
7. Shell Programming and Scripting
I have a file containing the following
p1 q1 p2 q2 p1 p2 p3
pr1 pr2 pr1 pr2
I want to remove the last character from all strings that start with 'p' and end with '1'. In general, I do not know what is between the first part of the string and the last part of the string.... (4 Replies)
Discussion started by: bigfoot
8. Shell Programming and Scripting
I would like to remove characters from column 7 so that from an input file looking like this:
>HWI-EAS422_12:4:1:69:89 GGTTTAAATATTGCACAAAAGGTATAGAGCGT U0 1 0 0 ref_chr8.fa 6527777 F DD
I get something like that in an output file:
... (13 Replies)
Discussion started by: matlavmac
9. UNIX for Dummies Questions & Answers
I have a .txt and I need to delete the characters betwwen the 10th and 20th...
How can I do that...
I need to do somethink like these:
%s/I don't know how to define a range between 10th and 20th character//g
Can you help me...
If I want the 10 first characters i do this:... (2 Replies)
Discussion started by: nuno_fbo
10. Shell Programming and Scripting
If I have a string defined as:
How can I loop through it character by character? I haven't been able to find a way to index the string so that I loop through it.
shew01 (10 Replies)
Discussion started by: shew01