Search Results

Search: Posts Made By: ford2020
1,374
Posted By ford2020
cat file1 S24545ATTFCTA197000022238 ...
cat file1
S24545ATTFCTA197000022238
S24547ATTFCTA196000022185
F24902ATTFCTBA0D000024481
A41105SCEKEIA212000004753
S41632SCEKENA001000003577
w41642SCEKEIA309000003214
G41905SCEKEIBA03000010883...
1,374
Posted By ford2020
Simple way to delete
With file2 search for all data in file1 then delete matched pattern in file1.Length of each record is like 30. As there is no constant string in file2 how to search and delete in file1. Is that we...
3,751
Posted By ford2020
My requirment is like whenever ./test.sh run, i...
My requirment is like whenever ./test.sh run, i need to compare the date value in output file with script run date. Script can run at any day but once in a day.

Ex:

when test.sh is executed...
3,751
Posted By ford2020
is there anyway we can do it in shell scripting?
is there anyway we can do it in shell scripting?
3,751
Posted By ford2020
Thanks but I needed by doing UNIX shell scripting...
Thanks but I needed by doing UNIX shell scripting .....
3,751
Posted By ford2020
Check for date
How to validate the first line from 1-8 position of audit file that contains the script run date... script could run in random dates.

head -1 file1

20090516 100034837SHDHSHE
2,413
Posted By ford2020
I am not able to do by gawk also.... gawk: cmd....
I am not able to do by gawk also....
gawk: cmd. line:1: FNR=NR {a[substr($0,1,6)]++;next} substr($0,1,6) in a}
gawk: cmd. line:1: ^ parse
2,413
Posted By ford2020
i tried using awk awk: cmd. line:1: FNR=NR...
i tried using awk
awk: cmd. line:1: FNR=NR {a[substr($0,1,6)]++;next} substr($0,1,6) in a}
awk: cmd. line:1: ^ parse r
2,413
Posted By ford2020
I am getting error -bash: nawk: command not...
I am getting error
-bash: nawk: command not found
2,413
Posted By ford2020
Compare and extract
Compare two files, search for data from position 1-6 if both matches then i need to extract those records only from file A

cat File A
A37985LUNGIUF7845049530113
F41604CHACAMA286000004371
...
1,708
Posted By ford2020
More formatted string
In a large file i need last line of the file but I want ignore first charcter, ignore leading zeros after first character and print the remaining character as such. Is something i can do it by tail...
4,594
Posted By ford2020
Get Nth record from last line
I have a growing file . I knew only last few lines which is constant for evey job run. I'd need to pull the Nth record from the last line. In this case i should not use search pattern.
1,794
Posted By ford2020
Run with argument
I have created shell script to run sql query something like below. i can use this script with only few arguments. But how can i modify the script if empno is huge in numbers.
For example ...
1,817
Posted By ford2020
tail cmd will give only last given number of...
tail cmd will give only last given number of lines. I need to get only newlines which is appended in growing files (a.log).
For every run a.ksh which will produce a.log. For example if a.ksh is...
1,817
Posted By ford2020
Capture only the new lines
Whenever job run i need to capture only the news in growing file(audit file)?
How can we achieve this?
2,929
Posted By ford2020
How to write the file by position
I have 100000 records in excel spreed sheet . How do we write that into dat files based on position.If spread sheet contain null then we need as space..For example

abc 123456 dsjfjkl
abcde...
6,463
Posted By ford2020
Thanks for your reply. If jobs run through cron...
Thanks for your reply.
If jobs run through cron how do we handle this Situation?
6,463
Posted By ford2020
Conditional execution and parallel jobs
how can i process jobs parallel with conditions below.

Script1.ksh
Script2.ksh
Script3.ksh
Script4.ksh
Script5.ksh
Script6.ksh
Script7.ksh
Script8.ksh
Script9.ksh
Script10.ksh
...
Showing results 1 to 18 of 18

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