Hi,
I have a file with the following:
access-list.txt
router1
access-list 1 permit any any
access-list 1 deny any any
router2
access-list 2 permit any any
access-list 2 deny any any
router3
access-list 3 permit any any
access-list 3 deny any any
I want to hava an output that... (10 Replies)
A newbie to shell scripting.....
I need some assistance in doing the following:
I have a system generated text file(a makefile basically).
Before I can execute the make command, I need to modify one section of this generated file.
The generated section is as follows:
# INCLUDE macro... (5 Replies)
In other news, I have a colors text file with hundreds of lines, and I want to print only the even numbered lines. for example I have this file looks something like this:
ALLCOLORS.TXT
red red green red
blue red red red
green red red blue
green green green
blue blue blue
red blue blue blue... (1 Reply)
I need to write a script that reads through an input .txt file and replaces the end value with the end value of the next line for lines that have distance <=4000. The first label line is not actually in the input. In the below example, 3217 is the distance from the end of the first line to the... (12 Replies)
I need some help deleting lines in a file that contain spaces. Im sure awk or sed will work but i dont know much about those commands. Any help is appreciated :D (7 Replies)
I have one base file, and multiple target files-- each have uniform line structure so no need to use grep to find things-- can just define sections by line number.
My question is quite simple-- can I use sed to copy a defined block of lines (say lines 5-10) from filename1.txt to overwrite an... (3 Replies)
Hi everyone,
I have two files (A and B) and want to combine them to one by always taking 10 rows from file A and subsequently 6 lines from file B. This process shall be repeated 40 times (file A = 400 lines; file B = 240 lines).
Does anybody have an idea how to do that using perl, awk or sed?... (6 Replies)
I have a diff command that does what I want but when comparing large text/log files, it uses up all the memory I have (sometimes over 8gig of memory)
diff file1.txt file2.txt | grep '^<'| awk '{$1="";print $0}' | sed 's/^ *//'
Is there a better more efficient way to find the lines in one file... (5 Replies)
Hello friends,
I have a TXT file with 300 lines in it. I need to shuffle all the lines (randomly) so that they get into different order. Can anyone pls provide easy way, if any?
I got it done by doing this below but I see it very lengthy/inefficient way.
call random function to generate... (2 Replies)
Hi all,
Is there any idea on how to automate convert the paragraph in one line in a file, this will happen after OCR the documents, OCR split every paragraph. I need to join all the paragraph in one line.
#cat file.txtThe Commission on Higher Education (CHED) was created through Republic Act... (7 Replies)
Discussion started by: lxdorney
7 Replies
LEARN ABOUT DEBIAN
atscanuser
atuser(3) AtFS Toolkit Library atuser(3)NAME
atUserValid, atScanUser, atUserName, atUserUid - user handling
SYNOPSIS
#include <atfs.h>
#include <atfstk.h>
void atScanUser (char *userName; Af_user *resultUser);
char* atUserName (Af_user *user);
Uid_t atUserUid (Af_user *user);
int atUserValid (Af_user *user);
DESCRIPTION
atScanUser scans the given string userName and tries to derive an AtFS user identification (resultUser) from it. It does not verify the
existence of a corresponding UNIX (/etc/passwd) user entry. Use atUserUid to test that. atScanUser understands the following formats:
user When the string does not contain an at sign, it is considered to be a plain user name from the current host and domain.
user@host In the case that the part after the at sign doe not contain a period, it is assumed to be a hostname. Domain is the current
domain.
user@host.domain
This format can only be recognized, when the given domain is equal to the current domain, and the hostname remains as rest
between the at sign and domain name.
user@domain
An user identification string with a domain name different to the local domain is treated as user@domain, although this might
be wrong.
atUserName returns a string of the form user@domain generated from the given user structure. If no domain name is given in the structure,
it returns user@host instead. With no host and no domain name, just user is returned. The result string resides in static memory and will
be overwritten on subsequent calls.
atUserUid tries to map the given user structure to a UNIX user identification. It returns the uid on success, -1 otherwise.
atUserValid checks the given user structure for plausibility. It returns FALSE on fauilure, a non null value on success.
AtFStk-1.12 Fri Jun 25 16:39:50 1993 atuser(3)