10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have two pipe separated files as below:
head -3 file1.txt
"HD"|"Nov 11 2016 4:08AM"|"0000000018"
"DT"|"240350264"|"56432"
"DT"|"240350264"|"56432"
head -3 file2.txt
"HD"|"Nov 15 2016 2:18AM"|"0000000019"
"DT"|"240350264"|"56432"
"DT"|"240350264"|"56432"
I want to list the... (6 Replies)
Discussion started by: Prasannag87
6 Replies
2. UNIX for Dummies Questions & Answers
Is there anyway to display the file content in a subdirectory that starts or ends with a certain filename, say .txt? or start with NTS
$ ls *
dos2unix.bat dos2unix.exe test.txt
FilePermissions:
filepermission.html NTSLA32_SystemDrive.txt NTSLA36_regedit.txt
filepermission.sh ... (1 Reply)
Discussion started by: alvinoo
1 Replies
3. Shell Programming and Scripting
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
4. Shell Programming and Scripting
Hi,
I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C.
Thanks a lot!!
Here is a sample of my question.
e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
Discussion started by: dirkaulo
3 Replies
5. Shell Programming and Scripting
Hi
I want to write a script that reads a directory name, checks if the directory exists and lists the content of that directory.
That's what I have at the moment.
function listDirectory
{
echo "Give in a directory name"
read name
#Here I want to check if the... (4 Replies)
Discussion started by: hss
4 Replies
6. Shell Programming and Scripting
I need help. I have this file, it has 2 fields with at least 300 lines:
1 4
2 3
3 6
4 2
.
.
300 5
My output should be for every line in input file the output should be like this, for example line 1:
wget http://somewebsite/page=1&line=1
wget http://somewebsite/page=1&line=2
wget... (4 Replies)
Discussion started by: zorrox
4 Replies
7. Shell Programming and Scripting
Okay, so I am not quite sure the best way of going about this.
I have a whole stack of files that need items replaced with a code corresponding to it. In particular, I am looking to replace the names of countries with the two letter iso country code. The files themselves are in csv format with... (4 Replies)
Discussion started by: johnlee
4 Replies
8. Shell Programming and Scripting
Hello,
I've created a couple of files within a list using the command "ls -ltr | tail -2 > list" These files are the newest files placed within a directory. From the "list" file, I need to place the filenames as a variable. In which the newest file will be called "new_ctrl" the older file... (4 Replies)
Discussion started by: petersf
4 Replies
9. Shell Programming and Scripting
Hi Experts.
I need to list the file and the filename comes from the file ListOfFile.txt.
Basicly I have a filename "ListOfFile.txt" and it contain
Example of ListOfFile.txt
/home/Dave/Program/Tran1.P
/home/Dave/Program/Tran2.P
/home/Dave/Program/Tran3.P
/home/Dave/Program/Tran4.P... (7 Replies)
Discussion started by: tanit
7 Replies
10. AIX
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
Discussion started by: madhu_Jagarapu
2 Replies
KLDCONFIG(8) BSD System Manager's Manual KLDCONFIG(8)
NAME
kldconfig -- display or modify the kernel module search path
SYNOPSIS
kldconfig [-dfimnUv] [-S sysctlname] [path ...]
kldconfig -r
DESCRIPTION
The kldconfig utility displays or modifies the search path used by the kernel when loading modules using the kldload(8) utility or the
kldload(2) syscall.
The following options are available:
-d Remove the specified paths from the module search path.
-f Do not display a diagnostic message if a path specified for adding is already present in the search path, or if a path specified for
removing is not present in the search path. This may be useful in startup/shutdown scripts for adding a path to a file system which
is still not mounted, or in shutdown scripts for unconditionally removing a path that may have been added during startup.
-i Add the specified paths to the beginning of the search path, not to the end. This option can only be used when adding paths.
-m Instead of replacing the module search path with the set of paths specified, ``merge'' in the new entries.
-n Do not actually change the module search path.
-r Display the current search path. This option cannot be used if any paths are also specified.
-S sysctlname
Specify the sysctl name to use instead of the default kern.module_path.
-U ``Unique-ify'' the current search path - if any of the directories is repeated one or more times, only the first occurrence remains.
This option implies -m.
-v Verbose output: display the new module search path. If the path has been changed, and the -v flag is specified more than once, the
old path is displayed as well.
FILES
/boot/kernel, /boot/modules, /modules
The default module search path used by the kernel.
EXIT STATUS
The kldconfig utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
kldload(2), kldload(8), sysctl(8)
HISTORY
The kldconfig utility first appeared in FreeBSD 4.4.
AUTHORS
Peter Pentchev <roam@FreeBSD.org>
BSD
June 15, 2001 BSD