Hi All :D
I have a long file having different fields like :-
hh:mm:ss seconds
14:15:56 120
14:18:36 12
15:12:36 1500
I want to subtract the hh:mm:ss in line(2) from hh:mm:ss in line(1) & compare the output of substraction (obtained in... (10 Replies)
hi
i am having a script in which i am supposed to extract data for three different dates...first date is current date
second date is 15 days back
third date is 40 days back
for eg consider todays date 26062006 as first date then
second date is 11062006
third date is 17052006
now in my... (2 Replies)
Hi,
I have a scenario to just plug out the file name from the following location path.
/opt/project/data/int/holdFiles/csv195687.csv
So, how do I get just file name which is "csv195687.csv" from the above line using awk/shell scripting? Can we use indexOf and Substring in awk to get... (7 Replies)
Hi All,
I have a pipe delimited file with around 30 fields. What is the simple way to Update a value for any column. For ex. If i want to update 22 field with "album".
Similarly, how to do this for the whole file and selective records of the file.
Example file contents:
... (5 Replies)
Hi Guys...
I do have a script that I need to use time or time function in my condition.
The logic will be like if the current time of execution is between 7am and 7pm then do 1,2,3,etc else do 4,5,6.
I need help is that function or how best can I do this.
Thanks in advance.
Please... (3 Replies)
Hello!
I need to realize such task.
1. In my user's home dir I have folder1;
2. In folder1 I have some (various count) subfolders with random names;
3. In these subfolders I have one file anyname.pdf (various name in each subfolder) and file content.txt (constant name in each subfolder)
##... (7 Replies)
Hey guys,
I have a file which contains 22,373 ping trace outputs which I generated using a script I made, see excerpt below:
...
PING6(72=40+8+24 bytes) 2001:630:301:1453:219:e3ff:fee7:8c2a --> 2406:8000:101:c020::24
32 bytes from 2406:8000:101:c020::24, icmp_seq=0 hlim=44 time=279.163 ms... (6 Replies)
Hi,
I am trying to extract lines from a text file given a text file containing line numbers to be extracted from the first file. How do I go about doing this? Thanks! (1 Reply)
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)