Search Results

Search: Posts Made By: jakSun8
1,044
Posted By jakSun8
Thanks RudiC. I am not well versed in scripting...
Thanks RudiC. I am not well versed in scripting language but appreciate folks like you who help out generously on daily basis.

Thanks,
jak
1,044
Posted By jakSun8
Thanks Aia but i don't have perl installed on my...
Thanks Aia but i don't have perl installed on my system. Any awk or sed solution please?

Thanks,
jak
1,044
Posted By jakSun8
Help needed in excluding certain word patterns
Hi,

I need help with following. I need to exclude words that match following patterns
a. more than length 4 (example SBRAP)
b. contains mixture uppercase and lower case regardless of the length...
1,014
Posted By jakSun8
Thanks everyone for prompt help!
Thanks everyone for prompt help!
1,014
Posted By jakSun8
Help needed to extracting lines
Hello,

I need help in extracting lines that meets following criteria

Grep for a particular word and return line before it, the line that has that word, and line after that
...
1,178
Posted By jakSun8
Hi, So far i am doing manual steps Step...
Hi,

So far i am doing manual steps

Step 1: Replace Street with Street:
Step 2: Replace MAP with MAP:
Step 3: grep ":" myfile.xml
Step 4: Replace : with nothing (%s/://g)


Thanks,
JaK
1,178
Posted By jakSun8
Display lines between keywords inclusive
Hi,

I have a file that contains a lot of lines that are repetitive. I am interested in grepping the following section which is repetitive.



:::::::::::::::::::::::::::::::::::::::...
7,656
Posted By jakSun8
Thanks guys!
Thanks guys!
7,656
Posted By jakSun8
Move a line to top of the file
Hi,
I have a following file and it has only one occurrence of line that says "Output view:". It could be in middle somewhere ( i don't know the exact location ). I want to move it as the first line...
1,078
Posted By jakSun8
Thank you much!
Thank you much!
1,078
Posted By jakSun8
Insert line dynamically in a file
Hi,

I have a file which have several lines that ordered alphabetically. Each line is a tab-separated

Something like:

ABC_XX 12
BCC_XX 24
CDD_CC 12
::::::::::::
::::::::::::
PDD_EE 12...
1,085
Posted By jakSun8
Thanks for the prompt help!
Thanks for the prompt help!
1,085
Posted By jakSun8
File Manipulation - UNIX script
Hi,
I have a file about 100 lines. Each line is about 2000 characters (each line is fixed length). In middle of each line is following constant value

0000040029892586

Now, I want to go through...
1,072
Posted By jakSun8
Thanks franz - i will test it out
Thanks franz - i will test it out
1,072
Posted By jakSun8
Hi Yoda, I need to compare current time...
Hi Yoda,

I need to compare current time against the column my_expr_tmstp
1,072
Posted By jakSun8
Help needed with date compare
Hello,

I have this unix script which selects rows from DB where current time is greater than expired time (column). So this will give all the records that are expired 1 day ago, 2 days ago, 3 days...
1,271
Posted By jakSun8
thanks it worked!
thanks it worked!
1,271
Posted By jakSun8
Script needed to extract few lines from file
Hello,
I need a utility script or command that will extract the following lines from a file based on a 'word' contain in a line. For example my file contains lot of lines.
So if i pass 1800182 to...
1,006
Posted By jakSun8
Thanks a lot!
Thanks a lot!
1,006
Posted By jakSun8
List the file names that differ
Hello,

I have two directories - prev and current . They both have same multiple subdirectories and files. Now the current directory can have some updated files and some new files added that is not...
3,470
Posted By jakSun8
Hi Ygor, I have awk and gawk. uname -a ...
Hi Ygor,

I have awk and gawk.

uname -a
Linux 2.6.18-194.11.4.el5 #1 SMP Fri Sep 17 04:57:05 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
whence awk
/usr/bin/awk

cat tmp.sh
#!/bin/ksh
...
3,470
Posted By jakSun8
Hi Ygor, I tried and am getting this error...
Hi Ygor,

I tried and am getting this error when i run

sh: -c: line 0: syntax error near unexpected token `)'
sh: -c: line 0: ` +%s)'

thanks - jak
7,705
Posted By jakSun8
Thanks pamu - i will try it and let you know. ...
Thanks pamu - i will try it and let you know.

jak
7,705
Posted By jakSun8
Insert value of env variable in xml file
Hello,
I have the following variables set in my env

echo $MY_XSD_FILE
/home/jak/sample.xsd
echo $MY_INTERVAL_VALUE
4
I want to insert them between the xml tags in my xml file

cat...
3,470
Posted By jakSun8
Yes. I tried this on my shell date +"%Y%m%d"...
Yes. I tried this on my shell

date +"%Y%m%d" -d sunday
20121021
Showing results 1 to 25 of 109

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