Search Results

Search: Posts Made By: kttan
1,227
Posted By kttan
Insert content from file 1 to file 2 in specific criteria meet
Hi ,

I'm looking for some code that can copy and paste form file1 to file2 with 2 criterial meet.

file1:

test "sp-j1"
test "sp-j2"
test "sp-j3"
test "sp-j4"


...
1,167
Posted By kttan
thank for answer. i think should said like...
thank for answer.

i think should said like this .

grep -F variable data (is from a list of file that declare out which file need grep out)
1,167
Posted By kttan
Im having few varible. example : resistor...
Im having few varible.
example :

resistor
capacitor
jumper
inductor

i'm need grep data from a list of file.
analog/r1
analog/c3
analog/j1
analog/l2

each file might only have one...
1,167
Posted By kttan
Thank you Rubic, it work for awk , and...
Thank you Rubic,

it work for awk , and faster.

i have another question regrading grep.
after complete the list, i'm need use it as information to grep data from each file(>1k file, each file...
1,167
Posted By kttan
Thank bakunin. for the 1st 1 it only can print...
Thank bakunin.
for the 1st 1 it only can print out the line with ; symbol.

exp: only can print out
U21.1
instate of
C34.1
U21.1


sed -n '/CONNECTIONS$/,/DEVICES/ {
s/"//g...
1,167
Posted By kttan
Search for the information at file
I'm having few question.

i'm have a input file.


Other information
CONNECTIONS
"BP-COLLECTOR"
J6.4
"BP-TEST".4;
+5VS
C34.1
U21.1;
DEV_I2C_SDA
J6.6
...
2,089
Posted By kttan
cp testorder testorder_ori sed ' /^!...
cp testorder testorder_ori

sed '
/^! IPG: /{
a\
\
testplan generation off
:Loop
n
/^boards /bLoop
/^! IPG: /bLoop
/; permanent/bLoop
/^ *$/bLoop
s/;...
2,089
Posted By kttan
Hi Rubic, i'm trying search web on it , but...
Hi Rubic,

i'm trying search web on it , but still unable to future to understand,




testplan generation off
! IPG: board type 00851-1712
boards 2 to 2; permanent
test shorts "shorts";...
2,089
Posted By kttan
Thank for reply, below is the output i get. ...
Thank for reply, below is the output i get.
-testplan generation off is show at every line when it meet IPG, can it just show at 1st meet only?
permenent are not added , it only add after 2nd IPG...
2,089
Posted By kttan
OS: window xp, 7 and 10. shell :MKS kornshell ...
OS: window xp, 7 and 10.
shell :MKS kornshell

sed version , i trying sed --version it not work.

i means the 2 request i'm asking if can split it to 2 difference code line.
2,089
Posted By kttan
Hi Rubic, it fail error: sed: lebel ";...
Hi Rubic,

it fail error:
sed: lebel "; s/;/; permanent,/; t; /^ *$/!s/$/; permanent/" not found in script

if can please help split it to two line, so i can more understand about the code, i...
2,089
Posted By kttan
for the 1st i'm try is search for ! IPG ,but it...
for the 1st i'm try is search for ! IPG ,but it add all my file might have multiple same pattern , i'm only need add after 1st found.

for the 2nd 1, im only have some idea is search for 2nd " and...
2,089
Posted By kttan
Modify text file if found multiple pattern match for every line.
Looking for help,


i have input file like below and want to modify to expected output, if can without create additional file, hope can direct modify it.

have 2 thing need do.
1st
is adding...
667
Posted By kttan
opp , sorry , this not exits at the file_2 , i'm...
opp , sorry , this not exits at the file_2 , i'm over copy.., coz too many of them , i remove it ,and miss out.
667
Posted By kttan
Thank you for help , i'm try it , but no output...
Thank you for help , i'm try it , but no output is out.

if i'm comment this , other can have output, but if those have " at file_2 will not out
{gsub("\"", "", $2)}
667
Posted By kttan
Need help search multiple condition from a file.
OS: window 7
shell : korn shell

I have 2 file , i'm need grep data according File_1 from file 2.


File_1

CAL_ENAB_N_4_
$2N12743_29
+12V

File_2

NODE CAL_ENAB_N_4_
PINS
...
7,073
Posted By kttan
Thank you for help , but i'm still find how to...
Thank you for help , but i'm still find how to unzip into own folder.

OS window 7 , shell kornshell

i'm using the find command , it able to list out all file, but i'm unable to make it to the...
7,073
Posted By kttan
if so , is that any code to list all file with...
if so , is that any code to list all file with .zip file ?
currently my situation is all single file been zip even .exe and main folder, only sub folder are not turn into zip file.

...
7,073
Posted By kttan
Looking for help unzip multiple file
Hi all ,

My server using backup software and backup software corrupted , unable to restore it perfectly.

so i'm need a way to 1 time unzip all file, due to now all my backup file are in zip...
6,495
Posted By kttan
sorry for poor english , i'm din't mean that your...
sorry for poor english , i'm din't mean that your code is complex and i'm dont want to understand, it very great explanation for your code.

the question i'm asking is difference question regrading...
6,495
Posted By kttan
thank you for very details explanation. ...
thank you for very details explanation.

sorry i'm still have 1 newb question.

is that able to skip awk and move to other awk if meet condition ?
because im still new and very confuse on those...
6,495
Posted By kttan
Thank you for reply , it work. Sorry for...
Thank you for reply , it work.

Sorry for not clear explanation given.
i'm a test engineer , sorry not very clear about unix script, i'm looking for for help due to my system running at window...
6,495
Posted By kttan
thank you for reply. OS window 7 and...
thank you for reply.

OS
window 7 and window xp, using korn shell.

text need at at file 2 if meet the condition is > <space><space>!<space>comment<space>comment at the end of the line.
...
6,495
Posted By kttan
Add comment on last line if found match
Hi All,

totally new on it , normally use it for just 1 line.
i'm looking for help.

i'm have 2 file.

file 1 :
--------------------------------------------------
c12
c1
c3...
Showing results 1 to 24 of 24

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