Search Results

Search: Posts Made By: btt3165
2,231
Posted By btt3165
Thanks it works, using ${VAR} to pass the...
Thanks it works, using ${VAR} to pass the captured output to a file.
2,231
Posted By btt3165
##!/bin/ksh File_Name=${1} case "$File_Name"...
##!/bin/ksh
File_Name=${1}
case "$File_Name" in
*NF)
VAR="NBC"
;;
SC*)
VAR="CBS"
;;
esac

Execution...
2,231
Posted By btt3165
Thanks Corona688 I tried to execute the script...
Thanks Corona688 I tried to execute the script you posted but it does not give me an output. also i want to capture the output into a parameter, how do I do it.


Thanks.
2,231
Posted By btt3165
[SOLVED] Pattern Match Script
Hi,

I have a requirement in which I have to search the File name for pattern and if the pattern matches then I will have generate a value.

Example:

If
$File_name='*NF' Then "NBC"
Else ...
1,907
Posted By btt3165
Removal of HTML ASCII Codes from file
Hi all,

I have a file with extended ASCII codes in the description which needs to be removed.

List of extended ascii codes

"Œ", "œ", "Š", "š", "Ÿ", "ƒ", "-", "-", "‘",
"'", "‚", "“",...
1,307
Posted By btt3165
Thanks @ rangarasan it did work. used sed...
Thanks @ rangarasan it did work.

used
sed -e 's/[#*#*]*[*#*#]*[!!@!#]*[&*(%(] //g' test_1.dat > test_2.dat

@ sk1418
the "*" in the string provided is "*" and not wild cast.

Thanks.
1,307
Posted By btt3165
Find and Remove
I am trying to get multiple strings removed or replaced with space in a file, for individual strings I have been using the following and it works
sed -e 's/#*#*//g' test_1.dat > test_2.dat
what...
Showing results 1 to 7 of 7

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