10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a set of files in a folder which i need to cut in to two parts....
touch... (4 Replies)
Discussion started by: chillblue
2. 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
3. Shell Programming and Scripting
Was wondering how I can do the following....
I have a String as follows
This string can be in a file called tail.out or in a Variable called $VAR2
Now I have another variable called $VAR1="000004785" (9 bytes long), I need the content of... (5 Replies)
Discussion started by: mohullah
4. Shell Programming and Scripting
Please bare with me, I'm a total newbie to scripting. Here's the sudo code of what I'm trying to do:
Get file name
Does file exist?
get length of file name
get network id (this will be the last 3 numbers of the file name)
loop x 2
If... (1 Reply)
Discussion started by: KatieV
5. Shell Programming and Scripting
It should print "m".
What's the command to do this with sed? (6 Replies)
Discussion started by: cola
i have string var1=NN. Based on conditions, i have to change this first N to Y or second N to Y and send the details to other process. How to do that? This is a linux machine.
Selva (1 Reply)
Discussion started by: bharathappriyan
7. Shell Programming and Scripting
Hi, I am totally new to shell scripting.
I have a String "c:\working\html\index.txt.12-12-2009.bkp" I want to check if the string has more than one "." character. If it does I would like to retrieve only "c:\working\html\index.txt" i.e, discard the second occurrence of "." and the rest of the... (7 Replies)
Discussion started by: imr
8. Shell Programming and Scripting
when i am doing the following things getting error
Can anyone please suggest
i have a file where there is a line like the following
branch=dev sdf dev jin kilii fin kale boyle dev james dev
i want to search the existance of dev in the above line.
cat "$file" | sed -n... (8 Replies)
Discussion started by: millan
9. 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
10. Shell Programming and Scripting
I want to change the first/or any character of a string to upper-case:
Test or tEst or teSt or tesT
thanks (6 Replies)
Discussion started by: prkfriryce