10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My argument has data as below.
10.9.9.85
-rwxr-xr-x user1 2019-10-15 17:40 /app/scripts/testingscr5.scr 127869538
-rwxr-xr-x user1 2019-10-15 17:40 /app/scripts/testingscr56scr 127869538
....... (note all these between lines will start with hyphen '-' )
-rwxr-xr-x user1 2019-10-15 17:40... (3 Replies)
Discussion started by: mohtashims
3 Replies
2. Shell Programming and Scripting
HI All,
We have an Redhat Machine,
And some folder with couple simple text files, this files containing a lot of lines with various strings and IP address with different classes.
The Requirement in eventually , is to pass the all various IP addresses to Excel.
My question is : what is... (4 Replies)
Discussion started by: James Stone
4 Replies
3. Shell Programming and Scripting
Hello to all in forum,
Maybe some unix expert could help me. I have the following tcpdump command:
tcpdump -i any port 13907 -s 0 -w Out.cap
I would like to run tcpdump to only capture data related with especific string.
Within the dump the protocol is GSM MAP and the string is Address... (0 Replies)
Discussion started by: cgkmal
0 Replies
4. Shell Programming and Scripting
hlow all i need help for my case
i want to get variable 20(in bold) but filter in print $3 not $2 so this input
95:20111005_20111123:1821546322
96:20111005_20111123:0053152068
97:20111005_20111123:1820960407
98:20111005_20111123:2021153102
99:20111005_20111123:2021153202... (4 Replies)
Discussion started by: zvtral
4 Replies
5. Shell Programming and Scripting
Hello, I want to locate a special character in each line of a file and replace it with another string that contains a special character and $i (i is incresing each cycle)
string1: export IBAN=AAAAAAAAA . . . . export IBAN=zzzzzzzzzzz
I want it to be:
export IBAN=AAAAAAAAA . export... (1 Reply)
Discussion started by: LiorAmitai
1 Replies
6. Shell Programming and Scripting
My input contains a single word lines.
From each line
data.txt
prjtestBlaBlatestBlaBla
prjthisBlaBlathisBlaBla
prjthatBlaBladpthatBlaBla
prjgoodBlaBladpgoodBlaBla
prjgood1BlaBla123dpgood1BlaBla123
Desired output -->
data_out.txt
prjtestBlaBla
prjthisBlaBla... (8 Replies)
Discussion started by: kchinnam
8 Replies
7. Shell Programming and Scripting
Hi
Does anybody know if there is a utility/command in ksh which would allow to copy/insert the contents of one string into certain positions of the other?
for example:
A=" ABCDEF "
B="HHH"
I need to insert contents of string "B" into string "A" from position 3 to 5, so... (3 Replies)
Discussion started by: aoussenko
3 Replies
8. Shell Programming and Scripting
Hi all,
I'm trying to extract the name of a script that is being run with a full path. i.e.
if the script name is /some/where/path/script_name.ksh
I'd like to extract only: script_name
i know that it is possible to do so in two phases:
echo "${0##*/}" will give me script_name.ksh
and... (4 Replies)
Discussion started by: iceman
4 Replies
9. Shell Programming and Scripting
Hi all,
I have tried the following simple code in ksh. (length.sh)
#! /usr/bin/ksh
var="xxxxxx0987890"
echo stringlength is ${#var}
but this gives me a error saying "length.sh: bad substitution"
Can some one please help me in resolving this. (4 Replies)
Discussion started by: ssgrpid
4 Replies
10. UNIX for Dummies Questions & Answers
I'm trying to write a script which prints out the users who are loged in.
Printing the output of the "users" command isn't the problem. What I want is to filter out my own username.
users | grep -v (username)
does not work because the whole line in which username exists is suppressed.
If... (5 Replies)
Discussion started by: Cozmic
5 Replies