07-21-2017
Please remove my previous post
please remove my previous post on "Query on scp"
The approach which iam thinking will not work
Inconvenience caused regretted
Last edited by Scott; 07-21-2017 at 04:41 PM..
Reason: No need to delete requested post
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have data like:
Blue Apple 6
Red Apple 7
Yellow Apple 8
Green Banana 2
Purple Banana 8
Orange Pear 11
What I want to do is if $2 in a row is the same as $2 in the previous row remove that row. An identical $2 may exist more than one time.
So the out file would look like:
Blue... (4 Replies)
Discussion started by: dcfargo
4 Replies
2. Shell Programming and Scripting
I want to remove commands having no output. In below text file.
bash-3.2$ cat abc_do_it.txt
grpg10so>show trunk group all status
grpg11so>show trunk group all status
grpg12so>show trunk group all status
GCPKNYAIGT73IMO 1440 1345 0 0 94 0 0 INSERVICE 93% 0%... (4 Replies)
Discussion started by: Raza Ali
4 Replies
3. UNIX for Dummies Questions & Answers
awk 'BEGIN{FS = "Ç"}
NR == 1 {p = $0; next}
NF > 1 {print p; p = $0}
NF <= 1 {p = (p " " $0)}
END {print p}' input.txt > output.txt
This is what the input data file looks like with broken lines
Code:
29863 Ç890000000 Ç543209911 ÇCHNGOHG
Ç000000001 Ç055 ... (4 Replies)
Discussion started by: cumeh1624
4 Replies
4. Post Here to Contact Site Administrators and Moderators
I have posted some data on the forum which needs to be deletd ASAP.
The post here in question are
How to do in this in shell script?
How to modify this script?
How to resolve this error?
Error in code in linux?
Please remove all the parts from post :
i-d4411185 ... (6 Replies)
Discussion started by: Palak Sharma
6 Replies
5. Post Here to Contact Site Administrators and Moderators
Hi Sir ,
Please remove the following code from the post
https://www.unix.com/unix-for-advanced-and-expert-users/210081-ftp-issue.html
thanks
Prabhu (7 Replies)
Discussion started by: ptappeta
7 Replies
6. Post Here to Contact Site Administrators and Moderators
In this thread: /shell-programming-and-scripting/255687-organizing-text-file-capital-names-capital-word-capital-word.html (sorry i cant use links)
that is not an example, those are real students names with real student login id's for the college i am attending and i am on that list. Please... (3 Replies)
Discussion started by: throwawayacc
3 Replies
7. UNIX for Beginners Questions & Answers
Dear Community;
I am posting this after looking at several solutions that were not fully relevant to the issue that I am facing.
I have a large xml file, 100k+ lines which have patterns like below:
<OfferDefinition Id="11">
<Type>Account</Type>
... (3 Replies)
Discussion started by: mystition
3 Replies
8. Shell Programming and Scripting
Hi,
i have a file with multiple entries. After some tests with sed i managed to get the file output as follows:
lsn=X-LINK-IN0,apc=661:0,state=avail,avail/links=1/1,
00,2110597,2094790,0,81,529,75649011,56435363,
lsn=TM1ITP1-AM1ITP1-LS,apc=500:0,state=avail,avail/links=1/1,... (5 Replies)
Discussion started by: nms
5 Replies
LEARN ABOUT FREEBSD
sigreturn
SIGRETURN(2) BSD System Calls Manual SIGRETURN(2)
NAME
sigreturn -- return from signal
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
int
sigreturn(const ucontext_t *scp);
DESCRIPTION
The sigreturn() system call allows users to atomically unmask, switch stacks, and return from a signal context. The thread's signal mask and
stack status are restored from the context structure pointed to by scp. The system call does not return; the users stack pointer, frame
pointer, argument pointer, and processor status longword are restored from the context. Execution resumes at the specified pc. This system
call is used by the trampoline code and longjmp(3) when returning from a signal to the previously executing program.
RETURN VALUES
If successful, the system call does not return. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
The sigreturn() system call will fail and the thread context will remain unchanged if one of the following occurs.
[EFAULT] The scp argument points to memory that is not a valid part of the process address space.
[EINVAL] The process status longword is invalid or would improperly raise the privilege level of the process.
SEE ALSO
sigaction(2), setjmp(3), ucontext(3)
HISTORY
The sigreturn() system call appeared in 4.3BSD.
BSD
September 6, 2013 BSD