10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
if i have to do pattern match for file name with digit alphanumeric value like this
i am using this File_*.csv
and File_*.csv for digit pattern match.
when i am doing pattern match for the digit then both alphanumeric match
and digit match is coming.
... (3 Replies)
Discussion started by: ramsavi
2. Shell Programming and Scripting
Hi I need a bash script that can search through a text file for all lines starting with 71502FSC1206 on every line it finds starting with this I need to place a letter F at the 127 position on that line.
Paul (6 Replies)
Discussion started by: firefox2k2
i am facing a strange problem
please tell me what's the wrong thing in this expression..
as i am not able to get... (1 Reply)
Discussion started by: aishsimplesweet
4. Shell Programming and Scripting
# cat email.txt | grep -i "To:"
# cat email.txt | grep -i "Subject"
Subject: How are you.
I need to print only email@example.com from To field need to eliminate "< & >" from To field and need to print entire subject after Subject:
It should be
#... (7 Replies)
Discussion started by: mirfan
5. Shell Programming and Scripting
Hello everyone, this is my first post so please give me a hand.
I apologize for my English, I'll try to be clear with my request.
I need to write a script (Bash) which finds all the variables defined in the file .h of the folder and then writes the name of the files .c where these variables are... (1 Reply)
Discussion started by: paxilpaz
6. Shell Programming and Scripting
if abc.sh is
then the output that i get is v5c01
my code is
s/192.168.1.41/acc1/g' abc.sh 2>&1 | tee abc.sh
i want to find 192.168.1.4 and replace it with v5c0
and find 192.168.1.41 and replace it with acc1
and i want to do it using sed (5 Replies)
Discussion started by: lassimanji
7. Shell Programming and Scripting
I need help I have a problem in searching the pattern in a file
let us say the file contains the below lines
line 1 USING *'/FILE/FOLDER/RETURN')
line 4 USING *'/FILE/FOLDER/6kdat1')
line 5 USING... (2 Replies)
Discussion started by: maxmave
8. Shell Programming and Scripting
FilesToBackup='*.track* *.xml *.vm* *.gz Trace* TRACE* "*core*" *.out fcif_data_* esi_error_* *.rollback *.sed R.* APStatus_*
log* *.output* send_mail* downenv* check_env* intaspurge_db_* sqlnet.log *.rpt *.html *.csv "*TSC*"'
and i am using it like this-
echo Moving files from $(pwd):
... (2 Replies)
Discussion started by: namishtiwari
9. Shell Programming and Scripting
I am using ksh on a HP Ux. I have a simple script but am having problem with the case statement:-
case $chl in
LoConfirm=”Using channel at Building 1”
echo “test conditon1”
LoConfirm=”Using... (2 Replies)
Discussion started by: gummysweets
10. Shell Programming and Scripting
I have a file with the following contents;
NEW 85174 MP081 /29OCT07
CNL 85986 MP098 /28OCT07
NEW 86014 MP098 /28OCT07
NEW 86051 MP097 /27OCT07
CNL 86084 MP097 /27OCT07
Now I have to retrieve all lines that start with NEW and where the next line starts with CNL and where the MP codes are... (8 Replies)
Discussion started by: rein